Programming Guide



sm_mts_SetComplete

Informs MTS that the work is complete and ready to be committed

int sm_mts_SetComplete(void);

Environment

MTS

Scope

Server

Returns

Description

sm_mts_SetComplete marks the current transaction complete. 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 may be committed (if all other parties agree).

For more details see the SetComplete 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_SetAbort