Page History
Table of Contents |
---|
Introduction
JS7 - Notifications - Configuration is performed from the Configuration->Notification sub-view of the JOC Cockpit and includes setting up the configuration for the JS7 - Monitor Service.
- The JMSFragment element is used to integrate with a JMS compatible Java Message Queue product and to parameterize messages from JS7 - Notification - Configuration, Monitor Variables.
JMSFragment
JMSFragment
supports the following attributes:
...
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.
...
Element | Element description | Description |
---|---|---|
ConstructorArguments | Optional or only once inside of ConnectionFactory element |
ConstructorArguments
The following elements can be nested inside a ConstructorArguments
element:
...
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:
...
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.
...
Code Block | ||||
---|---|---|---|---|
| ||||
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url=tcp://localhost:61616 |
Message
Body of a JMS notification. Any JS7 - Notification - Configuration, Monitor Variables can be used with the body.
Example for Apache ActiveMQ
Configuration
For use with Apache ActiveMQ a JMSFragment
configuration can look like this:
Code Block | ||||
---|---|---|---|---|
| ||||
<JMSFragment acknowledge_mode="Session.CLIENT_ACKNOWLEDGE" delivery_mode="DeliveryMode.PERSISTENT" destination="Queue" destination_name="js7" name="js7_on_failure" priority="4" time_to_live="0"> <MessageRef ref="command_on_failure"/> <ConnectionFactory java_class="org.apache.activemq.ActiveMQConnectionFactory" password="admin" user_name="admin"> <ConstructorArguments> <Argument type="java.lang.String"><![CDATA[tcp://activemq-5-15:61616]]></Argument> </ConstructorArguments> </ConnectionFactory> </JMSFragment> |
Client Libraries
The JS7 does not ship with client libraries for specific JMS server products such as Apache ActiveMQ, Apache Kafka and others.
...