7.6.1 Set Transaction Timeout
Specify the time period for which a request sent from the XA participant services remains active. If a transaction is not committed or rolled back within the specified time period, the transaction is rolled back.
Specify this value only for the transaction initiator application. The transaction initiator service propagates the timeout value, that you have specified, to the participant services. If you specify this value for a participant application, it is ignored.
Note:
The value that you provide specifies the timeout for the overall transaction. While deciding the transaction timeout, you must consider the resource manager latency too.To set transaction timeout for requests sent from participants services:
The value of transaction timeout specified for the initiator service can override the value of
txMaxTimeout
specified for the transaction coordinator, but it cannot exceed the value of txMaxTimeout
. For example, if the value of txMaxTimeout
is 70000 and the value of transaction timeout specified for the initiator service is 80000, then the maximum timeout is set to 70000 milliseconds. If the value of txMaxTimeout
is 90000 and the value of transaction timeout specified for the initiator service is 80000, then the maximum timeout is set to 80000 milliseconds.
Parent topic: Manage XA Transactions