Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Commit the open transaction

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.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
--- | ---
TIBCO.EMS..::.EMSException | If the Commit failed due to some internal error.
TIBCO.EMS..::.TransactionRolledBackException | An attempt to commit a transaction resulted in rollback.
TIBCO.EMS..::.IllegalStateException | Commit occurred in an inappropriate context.

# See Also

Session Class
TIBCO.EMS Namespace