This content has been marked as final.
Show 3 replies
-
1. Re: Bug? Transaction timeout....
jaikiran Jun 20, 2006 12:56 AM (in response to modjoe23)UserTransaction aUT = ctx.getUserTransaction();
aUT.begin();
aUT.setTransactionTimeout(360);
Change the above to:UserTransaction aUT = ctx.getUserTransaction(); aUT.setTransactionTimeout(360); aUT.begin();
i.e. set the transaction timeout before beginning the transaction. -
2. Re: Bug? Transaction timeout....
jaikiran Jun 20, 2006 1:01 AM (in response to modjoe23)Also, if you are expecting any exception to be thrown on a transaction timeout, then it wont happen. No exception is thrown, the transaction state will set to MARKED_FOR_ROLLBACK. Later on, if any operations are done using this transaction, only then will a exception be thrown.
You might want to verify whether the transaction timeout is working or not by checking the server logs, where you will see a WARN message from TransactionImpl saying that the transaction has timedout. -
3. Re: Bug? Transaction timeout....
genman Jun 20, 2006 12:23 PM (in response to modjoe23)
I wonder if<mbean code="org.jboss.tm.TransactionManagerService" name="jboss:service=TransactionManager" xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml"> <attribute name="TransactionTimeout">3000</attribute>
in your conf/jboss-service.xml needs to be changed to