This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes EJB Transaction Timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "EJB Transaction Timeout" Watch "EJB Transaction Timeout" New topic
Author

EJB Transaction Timeout

JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Please correct me if I'm wrong....

Part 1 :
WebSphere has a transaction timeout at the server level. By default, it is set 2 minutes (120 seconds).
An EJB involved in a transaction inherits this property, so the EJB container will throw a timeout exception if the transaction is not completed within 120 seconds.
There is no way to specify another timeout for a specific EJB , except using WAS proprietary features, or using bean managed transactions.

Part 2 : questions

- Why a default timeout of 120 seconds ?
- What are the side effects if I increase the timeout to, say, .... 2 hours ?
- Does IBM recommend a range for the transaction timeout, between X and Y seconds for instance ??


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Transaction Timeout
 
Similar Threads
TRansaction Timing Out only in Weblogic
How to catch EJB Transaction Timeout?
Server Timeout
System exception on UserTransaction.commit() , followed by RollbackException
Promlem with Transactions in EJB