File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Browser closed related issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Browser closed related issue" Watch "Browser closed related issue" New topic
Author

Browser closed related issue

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Hi,

I have a quick question on the servlet behaviour. If the browser is opened to access some information of a website, the servlet is called to retrieve something from the database. It could take long time to retrieve data from the database. If I close the browser at that moment, will the servlet be killed and stop retrieving data from the database?


Please advise


Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Depends. Usually, the dropped connection will be detected when the response buffer is being flushed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Browser closed related issue
 
Similar Threads
posting data not using a form
Retrieving data from an Oracle table to jtable
JDBC and Applets
JDBC JSP
JDBC JSP problem