Login with  Log in with facebook
Hiring Manager? SIGN UP HERE

i am calling destroy() method in the overriden init()  method of my servlet .

my servlet is extending GenericServlet abstract class.

will it hit the service(..) method of my servlet or not???

Ashish Bhargawa
08/12/2011 at 10:52
2 Answers

yes, I think the servlet will go through regular lifecycle as destroy method by default has no implementation. 

Rishi Yadav
08/12/2011 at 23:26


The service method will be invoked if the servlet has been configured as part of a web application and the request arrives for its invocation.


Pravin Jain
08/20/2011 at 12:09

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *