Compartilhar via


Improved COM Transaction Support

 

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 now allows you to attach to an external transaction using MSMQTransaction.InitNew.

Message Queuing provides improved support for sending or receiving messages within a Component Services (COM+) transaction.

  • In MSMQ 1.0, the queues and messages had to be created inside the MTS component to participate in the component's transaction. In MSMQ 2.0, queues and message COM objects can be created outside the COM+ component and passed in as parameters. In MSMQ 1.0, the Message Queuing COM objects work correctly only when they are created inside the MTS component and when the MTS component is apartment-threaded.

  • When you send or retrieve messages in MSMQ 2.0, the send and receive methods are always called within the transaction context of the caller. In MSMQ 1.0, the send and receive methods are called in the context of the creator of the object.

See Also

New Features for Windows 2000