aspose file tools*
The moose likes Servlets and the fly likes How to specify a Transaction Timeout in a Web Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to specify a Transaction Timeout in a Web Application" Watch "How to specify a Transaction Timeout in a Web Application" New topic
Author

How to specify a Transaction Timeout in a Web Application

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528

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.


If you want something you never had do something which you had never done
Mohamed Inayath
Ranch Hand

Joined: Nov 22, 2004
Posts: 124
As such we don't have any configuration within the web.xml for Transaction timeout handling.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

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.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to specify a Transaction Timeout in a Web Application