File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat Restart Programatically? 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 » Products » Tomcat
Bookmark "Tomcat Restart Programatically?" Watch "Tomcat Restart Programatically?" New topic
Author

Tomcat Restart Programatically?

John Vergis
Ranch Hand

Joined: Feb 24, 2004
Posts: 59
Hi

I have a requirement where I have to Restart my Tomcat5 Server, programatically, Could ne1 help me out in letting me know the appropriate API to make use of, to achieve this.

I don't want to reload/redeploy the webapp, but the Tomcat Server itself.

Thanks In Advance
John
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12674
    
    5
Basically you just have to execute the startup.bat batch file. This can be done with one of the java.lang.Runtime exec methods - be sure to consume the stdout and stderr streams that result.

"ne1" ??
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Restart Programatically?
 
Similar Threads
FAIL - Application at context path
change my BMP's datasource name during runtime?
exception
Loading the newly created class at runtime
Loading .jar files