Page History
Table of Contents |
---|
Introduction
- A JMSFragment can be used with the configuration of notifications in order to integrate with a Java Message Queue product that is JMS compatible.
JMSFragment
JMSFragment
supports the following attributes:
...
One of the following elements must be available inside a JMSFragment
element:
Element | Element description | Description |
---|---|---|
ConnectionFactory | Optional or only once inside the JMSFragment element | Specifies use of a JMS ConnectionFactory implementation |
ConnectionJNDI | Optional or only once inside the JMSFragment element | Specifies use of a JNDI properties file to create a JNDI InitialContextFactory |
JMS message:
Element | Element description | Description |
---|---|---|
Message | Required, only once inside of JMSFragment element | Body of a JMS notification |
ConnectionFactory
Specifies use of a JMS ConnectionFactory implementation.
ConnectionFactory
supports the following attributes:
Attribute | Usage | Description |
---|---|---|
java_class | Required | Java class of the JMS ConnectionFactory e.g.: |
user_name | Optional | The caller's user name |
password | Optional | The caller's password |
The following element can be nested inside a ConnectionFactory
element:
Element | Element description | Description |
---|---|---|
ConstructorArguments | Optional or only once inside of ConnectionFactory element |
ConstructorArguments
The following elements can be nested inside a ConstructorArguments
element:
Element | Element description | Description |
---|---|---|
Argument | Required, repeated use allowed inside the ConstructorArguments element | JMS ConnectionFactory constructor argument |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
... <ConnectionFactory java_class="org.apache.activemq.ActiveMQConnectionFactory"> <ConstructorArguments> <Argument type="java.lang.String"><![CDATA[tcp://localhost:61616]]></Argument> </ConstructorArguments> </ConnectionFactory> ... |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
... <ConnectionFactory java_class="org.apache.activemq.ActiveMQConnectionFactory"> <ConstructorArguments> <Argument type="java.lang.String"><![CDATA[my_user_name]]></Argument> <Argument type="java.lang.String"><![CDATA[my_password]]></Argument> <Argument type="java.lang.String"><![CDATA[tcp://localhost:61616]]></Argument> </ConstructorArguments> </ConnectionFactory> ... |
Argument
Argument
supports the following attributes:
Attribute | Usage | Description |
---|---|---|
type | Required | Java type of a constructor argument. Possible values:
Default: |
The value of the constructor argument will be stored as CDATA
node.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
... <Argument type="java.lang.String"><![CDATA[tcp://localhost:61616]]></Argument> ... |
ConnectionJNDI
Specifies use of a JNDI properties file to create a JNDI InitialContextFactory.
...
ConnectionJNDI
supports the following attributes:
Attribute | Usage | Description |
---|---|---|
file | Required | Path of the JNDI properties file |
lookup_name | Optional | Name to lookup JMS connection factory objects Default: |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url=tcp://localhost:61616 |
Message
Body of a JMS notification.