This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can I specify EJB timeout?

 
Win Yu
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can I specify EJB timeout? In DD?
[ April 11, 2002: Message edited by: Win Yu ]
 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic