HHH-17716 implement JtaTransactionAdapterTransactionManagerImpl.setTimeOut()
This commit is contained in:
parent
5fa08123b3
commit
5ad4d680ab
|
@ -106,6 +106,13 @@ public class JtaTransactionAdapterTransactionManagerImpl implements JtaTransacti
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setTimeOut(int seconds) {
|
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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue