How WebSphere MQ link handles reply-to queues

This topic describes how reply-to queues, a feature of WebSphere® MQ, are handled by the WebSphere MQ link.

WebSphere MQ allows the definition and usage of reply-to queues, which indicate to a receiving application where a reply should be sent. WebSphere MQ link emulates the reply-to queue functions in order to allow request/reply exchanges between applications on opposite sides of the WebSphere MQ link.

You can use reply-to queues for point-to-point request messages (queues) and for publish/subscribe request messages when exchanging information with a WebSphere MQ network.

WebSphere MQ reply-to queue names are limited to 48 characters or less. It is important when sending a message from WebSphere Application Server to WebSphere MQ that the reply queue name is less than 48 characters. This may require you to define an alias queue, as described in Issues relating to addressing bus destinations across the WebSphere MQ link.

Deciding to use reply-to queues is part of application design (see Designing an application for interoperation with WebSphere MQ). Your sending application must contain a definition of where replies are to be sent and attach this information to its messages. The replying application looks at this data in the received message to discover the name of the queue to which to reply.

There are two fields in the JMS API that are used for sharing information about the destination to which a message is sent (JMSDestination) and the destination to which replies should be sent (JMSReplyTo).

The JMSReplyTo field allows a response message to be returned if required. It contains enough detail for the receiving application to send a response message to the intended queue or topic so that it can be read by an application associated with the sender of the request.




Related concepts
Learning about programming for interoperability with WebSphere MQ using WebSphere MQ Links
Concept topic Concept topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 30, 2013 6:03:36 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-base-iseries&topic=cjcAL12_
File name: cjcAL12_.html