wood burning stoves
The moose likes Servlets and the fly likes Restarting ServletContext from within Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Restarting ServletContext from within Servlet" Watch "Restarting ServletContext from within Servlet" New topic

Restarting ServletContext from within Servlet

J.H.B. Oosterlaar
Ranch Hand

Joined: Sep 12, 2002
Posts: 41
Is there a way to restart or re-initialize the ServletContext/webapplication from within the Servlet itself?
Thanks and cheers,
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
Tomcat 4 has a manager application that will let you do that to a running Tomcat without disturbing other web applications but I don't think there is any call you can make from within the servlet itself. In the online Tomcat documentation go to the Manager App HOW-TO.
[ June 13, 2003: Message edited by: William Brogden ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Restarting ServletContext from within Servlet
It's not a secret anymore!