Sending Messages in Transaction Examples

 

Updated: July 19, 2016

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

Messages can be sent using the following types of transactions

  • Microsoft® Distributed Transaction Coordinator (MS DTC) external transaction

  • COM+ (MTS in MSMQ 1.0) transactions

  • Message Queuing internal transactions

  • Single-message transactions

The following examples illustrate how messages are sent within the context of different types of transactions.

ExampleLanguage
Sending a Message Using an MS DTC External TransactionC/C++ Code Example: Sending a Message Using an MS DTC External Transaction

 Visual Basic Code Example: Sending a Message Using an MS DTC External Transaction
Sending a Message Using a COM+ TransactionC/C++ Code Example: Sending a Message Using a COM+ Transaction

 Visual Basic Code Example: Sending a Message Using a COM+ Transaction
Sending a Message Using an Internal TransactionC/C++ Code Example: Sending a Message Using an Internal Transaction

 Visual Basic Code Example: Sending a Message Using an Internal Transaction
Sending a Message Using a Single-Message TransactionC/C++ Code Example: Sending a Message Using a Single-Message Transaction

 Visual Basic Code Example: Sending a Message Using a Single-Message Transaction

Community Additions

ADD
Show: