Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS.UFOCLIENT .NET client library 5.1 documentation]

Commit the open transaction

Namespace: TIBCO.EMS.UFO
Assembly: TIBCO.EMS.UFO (in TIBCO.EMS.UFO.dll)

# Syntax

    public virtual void Commit()

    Public Overridable Sub Commit

    public:
    virtual void Commit()

# Remarks

A session (with transaction semantics) always has exactly one open transaction. Message operations associated with the session become part of that transaction. This call commits all the messages within the transaction and releases any locks. Then it opens a new transaction.

# Exceptions

Exception | Condition
--- | ---
EMSException | If the Commit failed due to some internal error.
TransactionRolledBackException | An attempt to commit a transaction resulted in rollback.
IllegalStateException | Commit occurred in an inappropriate context.

# See Also

Session Class
TIBCO.EMS.UFO Namespace