NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Message Acknowledgment

You can set up your MessageQueue component to generate acknowledgment messages that tell you whether the message was successfully delivered. There are two main types of acknowledgment you can receive:

Within each of these scenarios, you can also receive positive or negative acknowledgment. In positive acknowledgment, you receive an acknowledgment message when your message successfully reaches its destination queue or application. In negative acknowledgment, you receive an acknowledgment message when your message fails to reach its destination queue or application. A message might fail to reach its destination if its time-out period expires or if the message can't be authenticated.

As with most operations in Message Queuing, acknowledgments are handled via sending a new message to a queue. In this case, the acknowledgment message is sent from the target queue to a special type of queue called an Admin queue. Acknowledgment messages differ from standard messages in that they contain no attached body; only the information in the message header is of interest in an acknowledgment.

Note   In the NGWS frameworks, acknowledgment message are sent to whatever queue you specify in the AdministrationQueue property. You determine the type of acknowledgment you want to receive by setting the AcknowledgeType property to one of its predetermined values.

You can check acknowledgment messages in the same way you check any message on a queue — by peeking at the acknowledgment queue or removing messages from it. For more information, see Reading and Receiving Messages.

For instructions on setting up acknowledgment, see Requesting Acknowledgment for a Message .

See Also

Sending and Serializing Messages | Requesting Acknowledgment for a Message  | Reading and Receiving Messages |