DEPRECATED: Sending a request-reply message from a Diffusion client
You can send a message from a Diffusion™ client into a JMS
server with the expectation that a JMS client processes the message and sends a response
back to the same Diffusion client.
Note: The JMS Adapter v5.1 is now deprecated. Use the new JMS adapter instead. For more information, see JMS.
The JMS client subscribes to messages on the queue ABC.
The Diffusion client subscribes to jms/tmp/queue/XYZ. (Commonly, XYZ is a unique identifier).
The Diffusion client sends a request message to
jms/queue/ABC with the
DiffusionReplyTo header set with the value jms/tmp/queue/XYZ.
The JMS client receives the request message on queue ABC, with the
JMSReplyTo header set to queue DEF.
The JMS client sends a reply to queue DEF.
The Diffusion client receives the reply on topic
jms/tmp/queue/XYZ.
Note: The return Diffusion topic can be any
topic, so it is not necessary that the originating Diffusion client receives the reply – it can
be any client listening for messages on that topic.
Figure 1. Request-reply initiated by a Diffusion
client and serviced by a JMS client