I would like to bring this question back to everybody's attention since I'm also not yet able to solve that problem. (Setting the default timeout to a huge value is ok right now, but I prefer to change that before I go into production)
So is it possible to set different transaction timeouts for some beans or am I just too blind to find the answer somewhere?
Thank's for any help!
I would also really like to know if this is possible, as I have multiple different transactional needs within the same application.
Funny, this was my question too and it's the very first question in the forum. :-)
Also, shouldn't there be a forum for transactions?
p.s. I tried doing
since that has a method setTransactionTimeout(). But JBoss reports that CMT beans aren't allowed to call that method. I would like to continue to use CMT, so my guess (like the guys before me) is that the default timeout is configurable...
The timeout is global, and is the same for all beans. BMT should work, although I haven't tried it myself.