aspose file tools
The moose likes Servlets and the fly likes destroy() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "destroy()" Watch "destroy()" New topic
Author

destroy()

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
Rancher

Joined: Mar 22, 2000
Posts: 12268
    
    1
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?
Bill
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: destroy()
 
Similar Threads
what are container callback methods??
when is destroy called
ServletException from destroy( )
WA #1.....word association
Tomcat restarted and session still work?