my dog learned polymorphism*
The moose likes Servlets and the fly likes Connection timed out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Connection timed out" Watch "Connection timed out" New topic
Author

Connection timed out

Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
hi,
I have a servlet, it calls a method in a third party API. This method returns a XML document. Browser connection gets timed out Since the xml doc is voluminous. Is there any way to get this doc fom the API


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
The usual approach when a servlet has to get data with a process that takes a long time, is to start a separate Thread to control that process and return a message to the client saying the process has been started.
See for example discussion here at the ranch
Bill
Ajit Chandak
Greenhorn

Joined: Mar 09, 2004
Posts: 2
You may want to check this as well...
here

Servlets spun threads for database access may not be supported in future J2EE versions.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connection timed out
 
Similar Threads
10.3.7 Assignment rules for relationships
getting exception please help
Getting Connection Timed Out error
ClientAbortException
SOAPException: Error opening socket