Request messages
Use a request message when you want a reply from
the application that receives the message.
An example of an application that could use request messages is one that
displays the balance of a checking account. The request message could contain
the number of the account, and the reply message would contain the account
balance.
If you want to link your reply message with your request message, there
are two options:
- Make the application that handles the request message responsible for
ensuring that it puts information into the reply message that relates to the
request message.
- Use the report field in the message descriptor of your request message
to specify the content of the MsgId and CorrelId fields of the reply message:
- You can request that either the MsgId or the CorrelId of the original message is to be copied into the CorrelId field of the reply message (the default action is to copy MsgId).
- You can request that either a new MsgId is generated
for the reply message, or that the MsgId of the original
message is to be copied into the MsgId field of the reply
message (the default action is to generate a new message identifier).