Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Connection timed out" Watch "Connection timed out" New topic

Connection timed out

Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
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

Joined: Mar 22, 2000
Posts: 13036
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
Ajit Chandak

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

Servlets spun threads for database access may not be supported in future J2EE versions.
I agree. Here's the link:
subject: Connection timed out
It's not a secret anymore!