A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
I agree. Here's the link:
subject: calling destroy() in init() method in servlet
what code will be there in init() of GenericServlet
Servlet Destroy() Method
destroy() method of servlet.
Calling destroy() inside init()
calling destroy() from init()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015