Adapter type: ro-adapter-jms-monitor[version]
The following table describes the configuration elements of the JMS monitor adapter.
Note
The JMS monitor adapter does not support form based adapter configuration at all. You would have to configure this adapter using the XML view. To configure the adapter, see Configuring base adapters.
JMS monitor adapter configuration node elements
Element | Description | Required |
---|---|---|
| Contains JNDI properties that need to be set for a name lookup | Yes |
| Specifies the lookup name for ConnectionFactory | Yes |
| Specifies the user name for JMS provider's authentication. | Conditional |
| Specifies the password that corresponds to the | Conditional |
| Specifies the number of times the JMS adapter retries to reconnect to the JMS server after the connection is lost | No |
| Specifies the time (in milliseconds) the adapter waits before it retries for a connection | No |
| Specifies the client ID to use for a durable subscription | Conditional |
| Contains the list of queues to be monitored | No |
| Contains the details of a queue | No |
| Contains the JNDI lookup name for a queue | Conditional |
| Stops flooding the message queue | No |
| Specifies the fully qualified Java classname to be used for processing messages from a specific topic
| No |
| Contains the list of topics to be monitored | No |
| Contains the details of a topic | No |
| Contains the JNDI lookup name for a topic | Conditional |
| Specifies the fully qualified (absolute) Java classname used for processing messages from a specific topic
| No |
| Specifies the durable subscription name (used to preserve messages published on a topic) for a topic | Conditional |
| Specifies the name of the Character set used to encode or decode the characters | No |
The following figure shows an XML template for the JMS monitor adapter configuration.
XML template of the JMS monitor adapter configuration
<config> <jndi> <property name 1></property name 1> <property name 2></property name 2> ... </jndi> <connection-factory></connection-factory> <user-name></user-name> <password></password> <number-of-retries></number-of-retries> <retry-wait></retry-wait> <client-id></client-id> <queues> <queue> <destination-context-name></destination-context-name> <maximum-messages-per-second></maximum-messages-per-second> <message-class></message-class> </queue> ... </queues> <topics> <topic> <destination-context-name></destination-context-name> <message-class></message-class> <durable-subscriber-name></durable-subscriber-name> </topic> ... </topics> <character-set></character-set> </config>
The following figure shows an XML sample of the JMS monitor adapter configuration.
XML sample of the JMS monitor adapter configuration
<config> <jndi> <java.naming.factory.initial>org.apache.activemq.jndi.ActiveMQInitialContextFactory </java.naming.factory.initial> <java.naming.provider.url>tcp://10.254.1.113:61616 </java.naming.provider.url> </jndi> <connection-factory>ConnectionFactory</connection-factory> <number-of-retries>3</number-of-retries> <retry-wait>2000</retry-wait> <queues> <queue> <destination-context-name>dynamicQueues/queue1.activemq.queue </destination-context-name> <maximum-messages-per-second>10</maximum-messages-per-second> <message-class>com.realops.adapter.jms.message.ByteMessageProcessor </message-class> </queue> </queues> <topics> <topic> <destination-context-name>dynamicTopics/topicnew </destination-context-name> <message-class>com.realops.adapter.jms.message.GenericMessageProcessor </message-class> </topic> <topic> <destination-context-name>dynamicTopics/topicnewnew </destination-context-name> <message-class>com.realops.adapter.jms.message.GenericMessageProcessor </message-class> </topic> </topics> <character-set>Shift_JIS</character-set> </config>