This content has been marked as final.
Show 1 reply
-
1. Re: @TransactionTimeout not working in EJB 3
sunil_patel Mar 19, 2014 8:51 AM (in response to rameshchokkapu)https://community.jboss.org/wiki/TransactionTimeout
- Using BMT: Calling javax.transaction.UserTransaction.setTransactionTimeout(int seconds). Please, be aware that this only applies to transactions started after this invocation on the same thread. Example:
- UserTransaction ut = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
- ut.setTransactionTimeout(20);
- ut.begin();
- ...
- ut.commit();