JMS Sender

Definition

Protocol

JMS

 

 

Description

Connect to a JMS server using JMSConfig and send events in MessageFormat to a queue or topic.

 

 

Comments

If JMSConfig is missing, blank or invalid, source is disabled.
If MessageFormat is missing, blank or invalid, mapped message format will be used.

Supported JMS message types (MessageFormat) are:

  • Text: only "ev:msg" field value from the event will be send as a simple string.

  • Map: each events is transformed into a MapMessage, with each event field becoming a MapMessage property with the same name and value.

 

Example

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

<destination objectId="JMS-Destination" type="JMSSender">
	<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>
	<parameter type="MessageFormat">mapped|text</parameter>
</destination>