MQMD settings in queue manager response messages
A queue manager uses these settings of fields in the message descriptor (MQMD) when sending a reply to a publication message. All other fields in the MQMD are set to their default values.
- Report
- Report is set to all zeros.
- MsgType
- MsgType is set to MQMT_REPLY.
- Format
- Format is set to MQFMT_RF_HEADER_2
- MsgId
- The setting of MsgId depends on the Report options in the original command message. By default, it is set to MQMI_NONE, so that the queue manager generates a unique value.
- CorrelId
- The setting of CorrelId depends on the Report options in the original command message. By default, this means that the CorrelId is set to the same value as the MsgId of the command message. This can be used to correlate commands with their responses.
- Priority
- Priority is set to the same value as in the original command message.
- Persistence
- Persistence is set to the value set in the original command message.
- Expiry
- Expiry is set to the same value as in the original command message received by the queue manager.
- PutApplType
- PutApplType is set to MQAT_BROKER.
- PutApplName
- PutApplName is set to the first 28 characters of name of the queue manager.
Other context fields are set as if generated with MQPMO_PASS_IDENTITY_CONTEXT.
Parent topic: Queued publish/subscribe command messages