File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes how can I specify 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 » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "how can I specify EJB timeout?" Watch "how can I specify EJB timeout?" New topic
Author

how can I specify EJB timeout?

Win Yu
Ranch Hand

Joined: Oct 17, 2001
Posts: 224
how can I specify EJB timeout? In DD?
[ April 11, 2002: Message edited by: Win Yu ]

Win
Muhammad Asif
Ranch Hand

Joined: Jul 13, 2001
Posts: 202
Hi,
EJB time out can be set in the deployment descriptor by setting the property
trans-time-out.
For example in WebLogic:
<transaction-descriptor>
<trans-timeout-seconds>
3600
</trans-timeout-seconds>
</transaction-descriptor>

Hope this helps!
Asif


SCJP, SCBCD, SCWCD 1.4, IBM-OOAD, SCEA, TCP, TCSS, TCIS, ATCP
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Asif is absolutely correct... for WebLogic. It is important to understand that the transaction timeout is controlled in the vender deployment descriptor, not in the standard ejb descriptor (ejb-jar.xml). Therefore, the setting the transaction timeout of an ejb will differ between Application Servers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can I specify EJB timeout?