File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
destroy method of servlet
Joined: May 02, 2005
May 09, 2006 03:28:00
how many ways we can destroy the
. In the realtime did we call destroy method explicitly?
thanks in advance
Joined: Mar 22, 2005
May 09, 2006 03:51:00
You don't ever call the servlet lifecycle methods - constructors, init, destroy- yourself; the servlet container does it for you.
[ May 09, 2006: Message edited by: Ulf Dittmer ]
Joined: Nov 15, 2004
May 09, 2006 04:34:00
In the realtime did we call destroy method explicitly?
The method will be executed like any other normal method if you call the method explicitly, but it will NOT make the servlet instance eligible for garbage collection.
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1
JSTL Tag Documentation
I agree. Here's the link:
subject: destroy method of servlet
frnds come up with solution
can we call destroy method in servlet service method?
Call destroy() inside init()
calling destroy in init method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015