Programming Guide



sm_mts_SetAbort

Tells MTS to abort the transaction

int sm_mts_SetAbort(void);

Environment

MTS

Scope

Server

Returns

Description

sm_mts_SetAbort marks the current transaction invalid. The object will be destroyed upon return to MTS from the current method.

This function can be called even if the object is not in a transaction. The effect is to cause the object to be destroyed. Thus this call says that the object is done with its work and the transaction should be rolled back (when all other parties have finished their work).

For more details see the SetAbort method under IObjectContextMethods in the MTS documentation.

Note that this function requires an object context and therefore cannot be used in the constructor of a service component.

See Also

sm_mts_SetComplete