wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes JTA Transaction time out Vs EJB Timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JTA Transaction time out Vs EJB Timeout" Watch "JTA Transaction time out Vs EJB Timeout" New topic
Author

JTA Transaction time out Vs EJB Timeout

vijay prakash
Greenhorn

Joined: Aug 23, 2005
Posts: 11
Hello,
I have configured a JTA Transcation time out in the weblogic server for a workflow Process application(JPD) to 120 seconds.
In the process there is a call to a stateless bean which takes more than 120 seconds to complete.As a result the process is timing out and aborting.
I need to override the 120 second JTA timeout in this bean.
I also tried out using the <trans-timeout-seconds> attribute as 300 in weblogic-ejb-jar along with <trans-attribute> as RequiresNew in ejb-jar, but it did not work out.
Please Advice.

Thanks,
Vijay
Sebastien Joly
Greenhorn

Joined: Jan 05, 2011
Posts: 4
Hello,
I have exactly the same problem.

Did you find any solution, I'm stuck.

Thanks
Sebastien Joly
Greenhorn

Joined: Jan 05, 2011
Posts: 4
Solved :

I couldn't find any annotation that works with Weblogic 10.3 but I did solve this issue by adding a weblogic-ejb-jar.xml file :

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
<weblogic-enterprise-bean>
<ejb-name>AdministrationDiffusionServiceImpl</ejb-name>
<transaction-descriptor>
<trans-timeout-seconds>1200</trans-timeout-seconds>
</transaction-descriptor>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTA Transaction time out Vs EJB Timeout