File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes destroy() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "destroy()" Watch "destroy()" New topic


eswar kumar
Ranch Hand

Joined: Oct 20, 2002
Posts: 98
How the container knows whether there are still servlet requests or not for calling destroy()method?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Since the servlet container gets the original request, creates/assigns a Thread to handle it, interprets it as a HttpServletRequest object, and calls the service method of the target, of course it knows which requests are still pending. How could it not?
I agree. Here's the link:
subject: destroy()
It's not a secret anymore!