This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Restarting ServletContext from within Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 12327
    
    1
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 ]

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Restarting ServletContext from within Servlet
 
Similar Threads
What is the Difference B/W Setting attribute in HttptSession and ServletContext?
RequestDispatcher Question?
ServletConfig & Context ?
Correct answer
Retreiving the application name only