Avoid Automatic Transaction Aborts Under MTS

If you are developing COM components that run under MTS (Microsoft Transaction Server), you will notice that many times your transaction automatically gets aborted. You can easily avoid this situation by modifying the transaction time-out value. Select the “My Computer” icon in MTS and click on the File | Properties menu or do a right mouse click on “My Computer” and select Properties. You can use the Options tab in this dialog window to set the computer’s transaction time-out property. The transaction time-out value is measured in seconds and indicates the maximum time period that transactions started on this computer can remain active. The system automatically aborts transactions that remain active beyond the specified time. The default value is 60 seconds. You can disable transaction timeouts by specifying the value 0; this setting is particularly useful when debugging MTS applications.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: