PI 7.30 added JMS topics support to the JMS adapter. Topics provide true pub/sub support. In this blog, we will look at the configurations for JMS topics using IBM MQSeries 7 as an exmaple.
JMS topic provides a true pub/sub architecture. This means that consumers can subscribe to a topic, and whenever a message is published to that topic, the consumer will receive the message. PI 7.30’s JMS adapter can be a subscriber of a topic. The JMS adapter can also publish to a topic. When publishing to a topic, whoever subscribes to that topic will receive the message. This means that receivers (or subscribers) can be added to the integration scenario without us having to make any changes in PI.
In the blog, we will use IBM MQSeries 7 as an example. On the MQ server, topics will have to be created. For more information on the creation and configuration of topics, please reference the following link:
Publish/Subscribe Messaging Can Be Simple with WebSphere MQ
The configuration is quite simple. We basically only need the TopicConnectionFactory java class and the Topic Java Class. For MQ:
TopicConnectionFactory Java Class: com.ibm.mq.jms.MQTopicConnectionFactory
Topic Java Class: com.ibm.mq.jms.MQTopic
It is assumed that the com.sap.aii.adapter.lib.sda has already been deployed with the MQ7 drivers.