File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes calling destroy() in init() method in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

calling destroy() in init() method in servlet

priyanaka jaiswal
Ranch Hand

Joined: Jun 03, 2011
Posts: 76
Hi All,

Calling destroy() method inside init() will it destroy the servlet or init() method will continue it process?

Thanks in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

It will simply call the method. Why would you even wonder about doing something so nonsensical?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

That exact question is already in the Ranch's Servlets FAQ. Have a look there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling destroy() in init() method in servlet
 
Similar Threads
calling destroy() from init()
Calling destroy() inside init()
destroy() method of servlet.
what code will be there in init() of GenericServlet
Servlet Destroy() Method