aspose file tools*
The moose likes Servlets and the fly likes Long process...problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Long process...problem" Watch "Long process...problem" New topic
Author

Long process...problem

Ra'fat Musameh
Greenhorn

Joined: Nov 30, 2005
Posts: 4
Hi
I have got a page call servlet ( doGet )which process a request for a long time, but if the user request this servlet, it starts to process and then after a time (~1 hour) browser gives "page cannot be displayed" but the request is still be processed in server so the user cannot see anything. any one can help.

thanx in advance.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Ra'fat Musameh:
Hi
I have got a page call servlet ( doGet )which process a request for a long time, but if the user request this servlet, it starts to process and then after a time (~1 hour) browser gives "page cannot be displayed" but the request is still be processed in server so the user cannot see anything. any one can help.

thanx in advance.


What you are doing in doGet() method???


but the request is still be processed in server so the user cannot see anything. any one can help.


User see *page can not be displayed* page...
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Why in the world would you make a web related process that takes an hour to complete sit in a web browser and make the user wait? What you should do is kick off the process in another thread and return information to the user that they will be notified by email when the process is complete. Then in the email provide them a link to the information provided by the long running process.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Long process...problem