setTransactionTimeoutint
setTransactionTimeout(int) is a method in the Java Transaction API (JTA) used to configure the maximum duration allowed for transactions started by the current thread. The method is exposed by transaction management interfaces such as javax.transaction.TransactionManager and javax.transaction.UserTransaction.
Signature and parameters: void setTransactionTimeout(int seconds) throws SystemException. The parameter seconds represents the timeout in seconds.
Behavior: The method applies to the transaction context active on the calling thread. If the configured timeout
Usage considerations: Use setTransactionTimeout to bound long-running transactions, especially in systems with limited resources or strict
Exceptions: SystemException is thrown if the transaction manager cannot set the timeout or encounters an internal
See also: TransactionManager, UserTransaction, Java Transaction API (JTA), rollback.