Transaction Timeout Management
This
function enables you to set a timeout for transactions started by the
Transaction Manager module in the Transaction Service. For more information
about this module, see
JTA Implementation
in the Development Manual.
When you program your application components to start transactions, you can set the transaction timeout programmatically. When the timeout expires and the transaction has not committed its work properly, the system performs a rollback.
You can set a timeout also for transactions that you have not coded in your application component and cannot manage programmatically. Such transactions are started by the module that implements the javax.transaction.TransactionManager interface in the Transaction Service. By default, their timeout is 0 – that is, they run until they are completed. You can use the TransactionTimeout property of the Transaction Service to set another timeout value to ensure that the transaction will be terminated after a defined period. The value of this property must be determined according to the number of hanging transactions at a time:
· When there are not a lot of hanging transactions, you can set a timeout around 3600 (1 hour).
· When the number of hanging transactions is high, set the timeout between 30 and 120 (between 30 seconds and 2 minutes).
For more information about this property, see Transaction Service.