HHH-17716 implement JtaTransactionAdapterTransactionManagerImpl.setTimeOut()

This commit is contained in:
Gavin King 2024-02-06 17:04:20 +01:00
parent 5fa08123b3
commit 5ad4d680ab
1 changed files with 8 additions and 1 deletions

View File

@ -106,6 +106,13 @@ public class JtaTransactionAdapterTransactionManagerImpl implements JtaTransacti
@Override
public void setTimeOut(int seconds) {
if ( seconds > 0 ) {
try {
transactionManager.setTransactionTimeout( seconds );
}
catch (SystemException e) {
throw new TransactionException( "Unable to apply requested transaction timeout", e );
}
}
}
}