A transactional queue is one that is created for the specific purpose of receiving and processing transactional messages. In the NGWS frameworks, you are not limited to sending transactional messages only to transactional queues as you are in Microsoft Message Queuing, but you may still have cause to create transactional queues and manipulate their properties. For example, transactional queues provide some advantages over non-transactional queues in processing transactions: they are more reliable, ensure one-time delivery, and can coordinate transactions with other resource managers such as OLEDB and ODBC.
To create a transactional queue
[Visual Basic] Dim mq2 as New System.Messaging.MessageQueue mq2 = mq2.Create(".\MyTransQueue", True) [C#] System.Messaging.MessageQueue mq2 = new System.Messaging.MessageQueue(); mq2 = mq2.Create(@".\MyTransQueue","True");
Note This syntax creates a public transactional queue. The exact syntax you use in the first parameter depends on the kind of queue you're trying to create. For more information, see Queue Reference Recommendations.
Reading and Receiving Messages | Transactional Message Processing | Sending Messages Within an Internal Transaction | Creating Queues