Partilhar via


Message Queuing Internal Transactions

 

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

Message Queuing internal transactions provide better performance for transactions that only send or receive Message Queuing messages. Unlike MS DTC external transactions, Message Queuing internal transactions cannot be passed to another resource manager. They are less expensive than MS DTC external transactions because they avoid the cost of coordinating between several resource managers.

The SDK components used to create a Message Queuing internal transaction, include MQBeginTransaction (when using functions) and MSMQTransactionDispenser (when using COM components)

Note

When sending a single message, Message Queuing provides a single-message transaction that implicitly uses the Message Queuing internal transaction. This mode of sending a message provides the best performance of all transaction types.

More Information

For an example of See
Sending a message using an internal transaction C/C++ Code Example: Sending a Message Using an Internal Transaction

 Visual Basic Code Example: Sending a Message Using an Internal Transaction