When an MQPUT call fails, you can try to put the message on the queue again, return it to the sender, or put it on the dead-letter queue.
Each option has its merits, but you might not want to retry putting a message if the reason that the MQPUT failed was because the destination queue was full. In this instance, putting it on the dead-letter queue allows you to deliver it to the correct destination queue later on.
Before the message is put on a dead-letter queue, a remote queue manager attempts to put the message on the queue again if the attributes MsgRetryCount and MsgRetryInterval have been set for the channel, or if there is a retry exit program for it to use (the name of which is held in the channel attribute MsgRetryExitId field).
If the MsgRetryExitId field is blank, the values in the attributes MsgRetryCount and MsgRetryInterval are used.
If the MsgRetryExitId field is not blank, the exit program of this name runs. For more information on using your own exit programs, see WebSphere MQ Intercommunication.
You return a message to the sender by requesting a report message to be generated to include all of the original message. See Report messages for details on report message options.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzal1042 |