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
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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
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