About the MTSEnvironment Object

Like the TableQueue object, the MTSEnvironment object exposes no methods or properties outside the scope of the CML application. The other server-side components of the CML application can instantiate the TableQueue object and invoke its methods, but it is visible only to them. For this reason, it is simply an object, not a COM component.

The purpose of the MTSEnvironment object is to add control to the creation, destruction, and data-access functionality of the COM components of the CML application.

The MTSEnvironment object contains only three public methods:

MTSEnvironment Methods

Method Description
CreateInstance Instantiates an object within the object context of MTS.
SetAbort Rolls back ("aborts") a database transaction.
SetComplete Sets a database transaction to complete.

To see the complete code for the MTSEnvironment object, click MTS.cls. You can refer to this code when reading the following topics about this object.