Reply-to queue and queue manager

There are occasions when you may receive messages in response to a message you send:

Using the MQMD structure, specify the name of the queue to which you want reply and report messages sent, in the ReplyToQ field. Specify the name of the queue manager that owns the reply-to queue in the ReplyToQMgr field.

If you leave the ReplyToQMgr field blank, the queue manager sets the contents of the following fields in the message descriptor on the queue:

ReplyToQ
If ReplyToQ is a local definition of a remote queue, the ReplyToQ field is set to the name of the remote queue; otherwise this field is not changed.

ReplyToQMgr
If ReplyToQ is a local definition of a remote queue, the ReplyToQMgr field is set to the name of the queue manager that owns the remote queue; otherwise the ReplyToQMgr field is set to the name of the queue manager to which your application is connected.
Note:
You can request that a queue manager makes more than one attempt to deliver a message, and you can request that the message is discarded if it fails. If the message, after failing to be delivered, is not to be discarded, the remote queue manager puts the message on its dead-letter (undelivered message) queue (see Using the dead-letter (undelivered message) queue).


© IBM Corporation 1993, 2002. All Rights Reserved