wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Restarting ServletContext from within Servlet" Watch "Restarting ServletContext from within Servlet" New topic
Author

Restarting ServletContext from within Servlet

J.H.B. Oosterlaar
Ranch Hand

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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.
Bill
[ June 13, 2003: Message edited by: William Brogden ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Restarting ServletContext from within Servlet
 
Similar Threads
What is the Difference B/W Setting attribute in HttptSession and ServletContext?
RequestDispatcher Question?
Retreiving the application name only
Correct answer
ServletConfig & Context ?