tibemsXAResource_SetTransactionTimeout

Function

Purpose

Set the timeout limit.

C Declaration

tibems_status tibemsXAResource_SetTransactionTimeout(
    tibemsXAResource xaResource,
    tibems_int seconds );

COBOL Call

CALL "tibemsXAResource_SetTransactionTimeout"
     USING BY VALUE xaResource,
           BY VALUE seconds,
           RETURNING tibems-status
END-CALL.
Note: xaResource has usage pointer.

Parameters

Parameter Description
xaResource Set the transaction timeout of this resource.
seconds Use this transaction timeout (in seconds).

Remarks

If an unprepared transaction does not log any activity on the server for this length of time, then the server automatically rolls back the transaction.