This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Transaction Timeout" Watch "EJB Transaction Timeout" New topic
Author

EJB Transaction Timeout

Guruprasad Kateel
Greenhorn

Joined: Jul 10, 2003
Posts: 16
Our application accesses some common external EJBs implemented by third-party vendors. We have to implement timeout for every method call to an external EJB.
We did a small POC on this by writing a local EJB for every external EJB and specifying a transaction timeout value on the methods of the local EJB. We wrote a dummy external EJB and put an infinite loop in one of its method. The local EJB calls this method of the external EJB and the method of the local EJB has a transaction timeout value of 5 seconds. The method in the local EJB has the transaction attribute of REQUIRED and we have tried this by giving all possible transaction attributes for the method in the external EJB.
But the transaction is not timing out. What other settings we need to do ? Is there any other way of implementing timeout on EJB method calls. Also, how can we implement timeout for methods which are not in a transaction, which have a Transaction attribute of NEVER ?
Nagendra Prasad
Ranch Hand

Joined: Jul 11, 2002
Posts: 219
Not sure if this is of help.. generally the application server would have the timeout settings for EJB methods. (Rather than the EJB itself.). On WebSPhere, this can be checked on the admin console.


Best Regards,<br />Nagendra Prasad.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

usertransaction.setTransactionTimeout
public void setTransactionTimeout(int seconds)
throws SystemException


Groovy
 
jQuery in Action, 2nd edition
 
subject: EJB Transaction Timeout
 
Similar Threads
long post IBM.158
Question about Security + Transaction
EJB Transaction
IBM 158 Problems
ejb transaction times out