Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to specify a Transaction Timeout in a Web Application

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How to specify a Transaction Timeout in a Web Application ??

If it is a EJB application transaction timeout can be specified in a xml file like this :



How do i achieve this for a Web application ??

Waiting for your responses.
 
Mohamed Inayath
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As such we don't have any configuration within the web.xml for Transaction timeout handling.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do this with EJBs because some methods are meant to run under transactions. The same is not the case for a thread instance of a servlet. Servlets do not run in their own transaction.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic