Home
Message descriptor for response messages
When the broker sends a response message, all the fields of the message descriptor are set to their default values, except the following:
- CorrelId
- Set according to 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.
- Expiry
- The same value as in the original command message received by the broker.
- Format
- Set to MQFMT_RF_HEADER.
- MsgId
- Set according to the Report options in the original command message. By default, this means that it is set to MQMI_NONE, so that the queue manager generates a unique value.
- MsgType
- Set to MQMT_REPLY.
- Persistence
- The same value as in the original command message.
- Priority
- The same value as in the original command message.
- PutApplName
- Set to the first 28 characters of the queue manager name.
- PutApplType
- Set to MQAT_QMGR.
- Report
- Set to zeroes.
Other context fields are set as if generated with MQPMO_PASS_IDENTITY_CONTEXT.
Home