tibemsSession_Commit

Function

Purpose

Commit the open transaction.

C Declaration

tibems_status tibemsSession_Commit(
    tibemsSession session );

COBOL Call

CALL "tibemsSession_Commit"
     USING BY VALUE session,
           RETURNING tibems-status
END-CALL.
Note: session has usage pointer.

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.

Status Code Description
TIBEMS_OK Successful commit.
TIBEMS_ILLEGAL_STATE The session does not have transaction semantics.
TIBEMS_SECURITY_EXCEPTION The client lacks permission to send one of messages in the transaction.
TIBEMS_TRANSACTION_FAILED Commit failed and the server automatically rolled back the transaction.
TIBEMS_TRANSACTION_ROLLBACK