• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection timed out

 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to check this as well...
here

Servlets spun threads for database access may not be supported in future J2EE versions.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic