INFO: Using a Single MSMQ Queue for an MTS Component (174387)
The information in this article applies to:
- Microsoft Message Queue Server (MSMQ) 1.0
- Microsoft Transaction Server 1.0
This article was previously published under Q174387 SUMMARY
Microsoft Message Queue Server (MSMQ) send and receive operations can be
included in Microsoft Transaction Server (MTS) transactions. Since an MTS
component can be marked for transactions in several ways, you may need to
manage two types of queues and write conditional code to avoid queue and
component type mismatch (MQ_ERROR_TRANSACTION_USAGE error). It is possible
to use a single transactional queue in all the cases. MTS provides the
context object, IsInTransaction() method, to determine whether or not the
component is transactional. MSMQ provides specific flags in send and
receive APIs and ActiveX calls to deal with specific cases.
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
176816 HOWTO: Using MSMQ within an MTS Component in Java
Modification Type: | Major | Last Reviewed: | 8/11/2006 |
---|
Keywords: | kbinfo KB174387 |
---|
|