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 Setting the Transaction Time 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 "Setting the Transaction Time " Watch "Setting the Transaction Time " New topic
Author

Setting the Transaction Time

Shanthi Murugeson
Greenhorn

Joined: Dec 30, 2005
Posts: 10
Hi All,

we have a Stateless session EJB in which there are several webservices. We are facing the problem of Transaction Time out. It is now that decided that for each webservice we will set different Transaction times.

We tried changing the "<trans-timeout-seconds>" in weblogic-ejb-jar.xml but came to know that this is for the entire application. Is there any way to set the Transaction time for a single method in an EJB.

For example,

if our bean is LoginBean, there are different webservices like checkId, getId, checkBooks... etc... is there any way to change the transaction time only for checkId? we are using Container Managed Transaction...

Kindly help.....
prasad kulkarni
Ranch Hand

Joined: Mar 19, 2006
Posts: 66
I think that there is not such provision for individual method transaction timeout time.
However I will suggest a workaround. Create different EJB Projects with different transaction timeouts. Put the ejbs with siutable methods ( as per need of transaction timeout) in suitable ejb project. Create a jar file which will contain all the common code & include that jar in each ejb project.


scjp, scwcd
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Setting the Transaction Time
 
Similar Threads
Questions
Setting transaction attributes
Setting transaction attributes
This Weeks Giveaway
CheckBox