A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
calling destroy() in init() method in servlet
Joined: Jun 03, 2011
Jul 27, 2012 11:36:25
Calling destroy() method inside init() will it destroy the
or init() method will continue it process?
Thanks in advance
Author and ninkuma
Joined: Jan 10, 2002
Jul 27, 2012 11:44:04
It will simply call the method. Why would you even wonder about doing something so nonsensical?
Asking smart questions
Books by Bear
Joined: Oct 14, 2005
Jul 27, 2012 11:45:35
That exact question is already in
the Ranch's Servlets FAQ
. Have a look there.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: calling destroy() in init() method in servlet
calling destroy() from init()
destroy() method of servlet.
what code will be there in init() of GenericServlet
Calling destroy() inside init()
Servlet Destroy() Method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014