Requesting and receiving (MQGET) report messages

 

When you send a message to another application, you are not informed of any problems unless you complete the Report field to indicate the feedback that you require. The options available to you are in the Application Programming Reference.

Queue managers always put report messages on an application’s reply-to queue and it is recommended that your own applications do the same. When you use the report message facility, specify the name of your reply-to queue in the message descriptor of your message; otherwise, the MQPUT call fails.

Your application must contain procedures that monitor your reply-to queue and process any messages that arrive on it. Remember that a report message can contain all the original message, the first 100 bytes of the original message, or none of the original message.

The queue manager sets the Feedback field of the report message to indicate the reason for the error; for example, the target queue does not exist. Your programs should do the same.

For more information on report messages, see Report messages.

 

Parent topic:

Creating report messages


fg11300_