This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet closing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet closing" Watch "servlet closing" New topic
Author

servlet closing

akalanka de silva
Greenhorn

Joined: Sep 14, 2004
Posts: 18
hello everybody
does any kind of method have to invoke the servlet of the server ending
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by akalanka de silva:
hello everybody
does any kind of method have to invoke the servlet of the server ending


I havent understood. Could you explain more please.


Groovy
akalanka de silva
Greenhorn

Joined: Sep 14, 2004
Posts: 18
hey i want to method that invoke if we shutdown the tomcat server
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
if you want the name of the servlet method invoked when the server shuts down or servlet is destroyed, the method is destroy()
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you saying you want to be able to stop the tomcat server from a webpage?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet closing