Joined: Thu Mar 25, 2004 5:57 pm Posts: 1 Location: New Zealand
|
I have a stateless session bean with bean-managed transactions. I am using hibernate's Session.beginTransaction() and Transaction.commit() methods to manage transactions.
What is the best way to set the transaction timeout in this situation?
Hibernate does not seem to offer me any way of specifying this. Am I just missing something?
I could look up a UserTransaction before beginning the tx and call setTransactionTimeout(), but that would mean that I can't run the code outside of an appserver. (It is completely portable at the moment.)
TIA
ADK
|
|