Protocol |
JMS |
|
|
Description |
Connect to a JMS server using JMSConfig and retrieve messages from a queue or topic, transforming messages into ECS events. |
|
|
Comments |
If JMSConfig
is missing, blank or invalid, source is disabled. Supported JMS message types are:
For any other (unsupported) message types, an event will be created with a field having the name "ev:Jms:Error" and the value "Unsupported message type: <type>" |
This is example receiver configuration for the use of OpenJms server.
For this to work following libraries from OpenJms need to be added into
ECS classpath(EV_HOME/bin/service.cfg file):
commons-logging-1.0.3.jar
exolabcore-0.3.7.jar
openjms-client-0.7.6.1.jar
<source objectId="JMS-Source" stdout="ProcessInput2-Stack" type="JMSReceiver"> <parameter type="JMSConfig"> <jndiInitialContextFactory> org.exolab.jms.jndi.InitialContextFactory </jndiInitialContextFactory> <jndiProviderUrl>rmi://localhost:1099/</jndiProviderUrl> <jndiUsername/> <jndiPassword/> <jmsConnectionFactoryName> JmsQueueConnectionFactory </jmsConnectionFactoryName> <jmsDestinationType>queue</jmsDestinationType> <jmsDestinationName>queue1</jmsDestinationName> </parameter> </source>