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 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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 ]

Java Resources at www.wbrogden.com
 
Don't get me started about those stupid light bulbs.
 
subject: Restarting ServletContext from within Servlet
 
Similar Threads
RequestDispatcher Question?
What is the Difference B/W Setting attribute in HttptSession and ServletContext?
Retreiving the application name only
Correct answer
ServletConfig & Context ?