This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes a call from the servlet is hang where do I set a timeout ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "a call from the servlet is hang where do I set a timeout ?" Watch "a call from the servlet is hang where do I set a timeout ?" New topic
Author

a call from the servlet is hang where do I set a timeout ?

itamar lev
Greenhorn

Joined: Feb 21, 2005
Posts: 4
I have a problem that sometimes the server side doesn't return a reply for my requests.
The whole application is stuck !
Do someone know how to solve this problem by setting properties in the WAS custom properties,
or a solution in the servlet ?
thanks,
Itamar
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

There is no spec-compliant way to set a timeout on a request.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by itamar lev:
I have a problem that sometimes the server side doesn't return a reply for my requests.
The whole application is stuck !
Do someone know how to solve this problem by setting properties in the WAS custom properties,
or a solution in the servlet ?


Go for why, then how.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: a call from the servlet is hang where do I set a timeout ?