-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Setting Transaction timeouts with bean managed transactions
PostPosted: Thu Mar 25, 2004 6:12 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.