[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Transaction is not active

HoleInOne do-not-reply at jboss.com
Mon Apr 23 15:08:19 EDT 2007


Well, this value is basically to protect you from never ending operations. (deadlocks) 
So fill in a value (in seconds) after which your longest transaction cannot possibly return a valid value. 
For instance: say your longest transaction takes at most 10 minutes to complete. Then, after say 15 minutes, you can be reasonably sure the transaction failed. You fill in 15*60=900 seconds.

Hugo
p.s. this will also mean that a transaction normally taking millisecond to complete will also only timeout after 15 minutes .... A lot can go wrong in 15 minutes.
As a  rule of the thub: always make your transactions as short as possible! Please check to see if you can re-design your application such that you do not need to adjust this value. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039983#4039983

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039983



More information about the jboss-user mailing list