Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista
Response queues are application queues used to store application-generated response messages that are typically returned by an application that is reading messages from a queue. Any available queue can be specified as a response queue.
The response messages returned to these queues must be understood by the application returning the response messages and the application reading the response message. Message Queuing has no control over what information is sent in response messages.
When requesting response messages, the sending application must specify the queues that it wants to use as response queues. Typically, response queues should be local queues so that the sending application can read the response messages locally.
Specifying Response Queues
Message Queuing provides the following message properties for specifying response queues:
These properties (introduced in MSMQ 3.0) can be used to specify one or more response queues. Multiple response queues can be specified by a distribution list, multicast address, or multiple-element format name.
These properties are superseded by PROPID_M_RESP_FORMAT_NAME and MSMQMessage.ResponseDestination, respectively, and should not be used in new applications. These properties specify a single response queue.
Response queues and administration queues together
When both response queues and administration queues are needed, their functionality can be combined into a single queue. However, this restricts the response queue to nontransactional queues. All administration queues must be nontransactional.
Exposing private queues to other applications
The message properties used to specify response queues can also be used to send the format names of private queues to other applications.
|For information on||See|
|What are response messages||Response Messages|
|Distribution lists, multicast addresses, and multiple-element format names||Multiple-Destination Messaging|
|Code examples that request and return response messages||Responding to Message Examples|
|Other application queues||Application Queues|