
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:
For more information about this property, see Transaction Service .