How To Send in a MSMQ Single-Message Transaction (179016)
The information in this article applies to:
- Microsoft Message Queue Server (MSMQ) 1.0
This article was previously published under Q179016 SUMMARY
As part of its internal transaction support, Microsoft Message Queue Server
(MSMQ) provides specific functionality to handle cases where an MSMQ
application wants to send only a single message in a single transaction.
One reason to do this is to ensure exactly-once delivery, without needing
to coordinate with other activities into a single transaction.
The benefits of using this functionality are:
- Speed, compared to using an external transaction coordinator.
- Simplified application code.
- Delivery that is assured to occur exactly once.
The software development kit (SDK) provides examples of doing this as an
explicit internal transaction. This article provides examples of how to
perform the send as an implicit internal transaction, because there are no
examples of this in the SDK online Help.
REFERENCES
For more information and sample code regarding MSMQ transactions, see the
"MQSendMessage," "MSMQ Internal Transactions," and "Transaction Programming
Considerations" topics in the SDK online Help.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB179016 |
---|
|