Platform SDK: Transaction Server

enableCommit Method

[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]

Declares that the current object's work is not necessarily finished, but that its transactional updates are consistent and could be committed in their present form.

Provided By

Context class

void enableCommit ( );

Remarks

When an object calls enableCommit, it allows the transaction in which it's participating to be committed, but it maintains its internal state across calls from its clients until it calls etComplete or setAbort or until the transaction completes.

enableCommit is the default state when an object is activated. This is why an object should always call setComplete or setAbort before returning from a method, unless you want the object to maintain its internal state for the next call from a client.

See Also

Transactions