Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

destroy() method  RSS feed

 
Nitin Kharbade
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For multiple requests for the same servlet, how the destroy() method is used?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It isn't. The destroy() method is called by the container when the servlet is being taken out of service. It plays no part in the servicing of requests.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!