Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

By sending the MSMQQueueInfoobject of a second queue along with a message, the sending application indicates that it expects a response message from the receiving application. The MSMQQueueInfoobject is passed in the MSMQMessage.ResponseQueueInfoproperty of the message.

When the receiving application reads the message and sees that a response is requested ( ResponseQueueInfois not NULL), it should then return a response message to the queue specified by MSMQMessage.ResponseQueueInfo.

Note:
Each Message Queuing message can have no more than 4 MB of data.
To request a response
  1. Determine what type of response message is needed.

    Response messages are application-defined, consequently both the sending and receiving applications must be able to understand the message.

  2. Locate the response queue, creating one if it does not exist.

  3. Locate the destination queue, creating one if it does not exist.

  4. Open the destination queue and send the message.

  5. Retrieve the MSMQMessage.ResponseQueueInfoproperty from the message, and return a response message if one is requested.

See Also