Messages sent to the broker
This section shows the values set for fields in the MQMD for messages sent
to the broker.
- Report
- See MsgType (below), and Error handling by the broker.
- MsgType
- Can be set to MQMT_REQUEST for a command message if a response is always
required. The MQRO_PAN and MQRO_NAN flags in the Report field
are not significant in this case.
Can be set to MQMT_DATAGRAM, in which
case responses depend on the setting of the MQRO_PAN and MQRO_NAN flags in
the Report field:
- MQRO_PAN alone means that the broker is to send a response only if the
command succeeds.
- MQRO_NAN alone means that the broker is to send a response only if the
command fails.
- If a command succeeds partially, a response is sent if either MQRO_PAN
or MQRO_NAN is set.
- MQRO_PAN + MQRO_NAN means that the broker is to send a response whether
the command succeeds or fails. This has the same effect from the broker's
perspective as setting MsgType to MQMT_REQUEST.
- If neither MQRO_PAN nor MQRO_NAN is set, no response is ever sent.
- Format
- Set to MQFMT_RF_HEADER.
- MsgId
- Normally set to MQMI_NONE, so that the queue manager generates a unique
value.
- CorrelId
- Specifies the CorrelId that can optionally be included
as part of the subscriber's identity. When used with the MQRO_PASS_CORREL_ID
option in the Report field, it is also in all response
messages sent by the broker to the sender.
- ReplyToQ
- This is the queue to which responses, if any, are to be sent. This can
be the sender's publisher or subscriber queue that has the advantage that
the QName parameter can be omitted from the message text.
If, however, responses are to be sent to a different queue, the QName parameter is needed.
- ReplyToQMgr
- Queue manager for responses.
Note that a putting application can
leave this field blank (the default value), in which case the local queue
manager puts its own name in this field.
- Expiry
- Expiry of the subscription or publication.