Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTA Transaction time out Vs EJB Timeout

 
vijay prakash
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have exactly the same problem.

Did you find any solution, I'm stuck.

Thanks
 
Sebastien Joly
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic