Sending a JMS Message and Receiving a Durable Response
The JMS Receiver Event Source activity can be configured as a Durable Subscriber. If the subscriber is offline, the subscriber's messages are stored by the JMS server and delivered when the subscriber is online.
Procedure
Result
On Windows: The TopicDurableSubscriber.log output file at C:\tmp\TopicDurableSubscriber shows that the message is published to a topic and a topic subscriber has received the message from the topic.
On UNIX: /tmp/TopicDurableSubscriber
The Console displays a message similar to the following:
15:46:34.903 [PVM:In-Memory STWorkProcessor:1] INFO c.t.b.p.g.L.t.b.p.j.D.Log - Message=Publishing a Topic Message, MessageId=
15:46:35.043 [PVM:In-Memory STWorkProcessor:2] INFO c.t.b.p.g.L.t.b.p.j.D.Log - Message=Received a Topic Message. Message = This is a test Topic Message, MessageId=.
Understanding the Configuration
The JMS Send Message activity sends a message to the topic.sample topic. The JMS Receive Message activity subscribes to the topic.sample topic. Additionally, the JMS Receive Message activity is configured as durable, allowing messages to be received later if the receiver is offline.