This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes can we call destroy() method inside service() 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 "can we call destroy() method inside service()" Watch "can we call destroy() method inside service()" New topic
Author

can we call destroy() method inside service()

Mohan Karthick
Ranch Hand

Joined: Apr 11, 2005
Posts: 199
hi,

What happend if we all destroy() method?


rgds
'
Mohan
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You don't call destroy.
The servlet container does.

The destroy method is a place for you to put your clean-up code.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we call destroy() method inside service()
 
Similar Threads
destroy() method of servlets
destroy() method
can we call destroy method in servlet service method?
query on destroy method
Call destroy() inside init()