Running the JMS adapter
The JMS adapter is not enabled by default.
Running the JMS adapter within the Diffusion™ server
The JMS adapter can run within the Diffusion server, but is not enabled
by default. To enable the JMS adapter within the Diffusion server,
complete the following steps:
- Copy the adapters/jms/JMSAdapter.xml configuration file into the etc directory.
- Use the JMSAdapter.xml configuration file to define the
JMS adapter behavior.
For more information, see Configuring the JMS adapter.
- Use the Publishers.xml file to define and deploy the
JMS adapter as a publisher on your Diffusion
server:
<publisher name="JMSAdapter"> <class>com.pushtechnology.diffusion.adapters.jms.JMSAdapterPublisher</class> <enabled>true</enabled> <start>true</start> </publisher>
- Copy the adapters/jms/jmsadapter.jar file into the ext directory of your Diffusion server to ensure that it is on the Diffusion server classpath.
- Start or restart the Diffusion server.
Running the JMS adapter as a standalone client
The JMS adapter is a Java™ application. The adapter requires Oracle® Java Development Kit 8 (minimum update 1.8.0_131-b11).
To run the JMS adapter as a client, complete the following steps:
- To run the JMS adapter as a client on a different system to the Diffusion server, copy the following files from the Diffusion server system to the system where you want to
locate the JMS adapter.
- All files in the adapters/jms directory
- The Diffusion Java client library: clients/java/diffusion-client.jar
- The SLF4J JAR file: lib/thirdparty/slf4j-simple-1.7.21.jar
- A SLF4J bindings JAR files. For example Log4J2, which is provided in the Diffusion installation: lib/thirdparty/log4j-*.jar
- Get the JAR file for the third-party JMS provider you use.
- Use the JMSAdapter.xml configuration file to define the
JMS adapter behavior.
For more information, see Configuring the JMS adapter.
- Edit the jms_adapter.sh or jms_adapter.bat file to include the path to the Diffusion Java client library, SLF4J, and the JMS provider JAR on the classpath.
- Use the jms_adapter.sh or
jms_adapter.bat file to start the JMS adapter:
jms_adapter.sh relative_path/JMSAdapter.xml
This page last modified: 2016/10/03