JBoss configuration of small problems encountered by JMS services

xiaoxiao2021-03-06  67

JBoss Configuring JMS Communications requires the jbossmq-service.xml in the deploy / jms directory, and jbossmq-destinations-service.xml, configure the message queue name (must), other properties can use JBoss default settings, the default configuration is, ContextFactory uses ORG .jnp.interfaces.namingContextFactory, ConnectionFactory uses ConnectionFactory to initialize the environment

When configuring JMS communication, for example, when developing JMS clients and server, use server JBoss, some JAR packages in JBoss (

JNET.JAR, JBOSSMQ.JAR, JNPSERVER.JAR), although the client and server-side files can be compiled, but they need these JAR packages to run and start the service, so it is necessary to pay attention to put these JAR packages into the operating environment, ie In ClassPath, you need to include, you must also include these library files in the IDE development environment, which can run normally during compile. For example, when using Eclipse, if these three JAR packets are not included in the library file, the server-side thread only starts a MAIL line, and in fact, after these JAR packages, when running the server Contains 4-5 threads to run at the same time, so that the acceptance and processing of JMS messages can be properly performed.

转载请注明原文地址:https://www.9cbs.com/read-85779.html

New Post(0)