A Broker Response message is sent from a broker to the ReplyToQ of a publisher or a subscriber, to indicate the success or failure of a command message received by the broker if the command message descriptor specified that a response is required.
The response message is contained within the NameValueData field of the MQRFH2 header, in a <pscr> folder.
In the case of a warning or error, the response message contains the <psc> folder from the command message as well as the <pscr> folder. The message data, if any, is not contained in the broker response message. In the case of an error, none of the message that caused an error has been processed; in the case of a warning, some of the message might have been processed successfully.
<pscr> <Completion>ok</Completion> </pscr>
<pscr> <Completion>error</Completion> <Response> <Reason>3150</Reason> </Reponse> </pscr> <psc> ... command message (to which the broker is responding) ... </psc>
<pscr> <Completion>warning</Completion> <Response> <Reason>3081</Reason> <Topic>topic1</Topic> </Reponse> <Response> <Reason>3081</Reason> <Topic>topic2</Topic> </Reponse> </pscr> <psc> ... command message (to which the broker is responding) ... </psc>
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
aq07010_ |