aspose file tools
The moose likes Threads and Synchronization and the fly likes Request Timeouts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Request Timeouts" Watch "Request Timeouts" New topic
Author

Request Timeouts

A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Hi,

I need some inputs regarding the below..

In our application(Struts), we make requests to a backend through the API provided the vendor of the backend. But unfortunately ,in case there is issue with process taking longer it has to timeout which the API is not delivering.

I would like to handle the timeouts with a wrapper over the API, can you provide inputs like the viability, approach,etc

Thanks in advance :-)
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 458
After how much time your request is getting timed out? You can either increase timeout duration or display message to user of timeout..


Vinod Tiwari | Twitter
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
Currently the timeouts are not happening when we send across a request to the backend engine.

What we want is that if a request is fired to the backend and it doesnt get any response within 2 secs, it shoudl timeout and doesnt wait for eternity.

We had a recent issue where there was a high CPU util on the backend and the requests from the webapp were waiting indefinitely and utilmately there were hung threads...leading to the server being unresponsive.

Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request Timeouts
 
Similar Threads
Java API testing
Handling Timeout scenarios
Doubt in Locking
Release resources
Selenium 2 Best Practice