A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Starting/Stopping Tomcat windows service through Java
Joined: May 24, 2010
Jul 31, 2012 17:32:11
I am writing a system to deploy
wars across multiple tomcat installations.
I have been undeploying with tomcat manager, copying the war and deploying with tomcat manager.
However, due to flakiness with tomcat, or the manager, I would also like to restart the tomcat windows service.
Is there some magic in tomcat manager to shutdown tomcat? Then the windows service would restart it.
Otherwise, are there any libraries for accessing a remote windows machine and start/stop services?
Joined: Oct 14, 2005
Jul 31, 2012 22:27:40
Seems to me that the easiest method would be to use System.getRuntime().exec() to execute the Windows command to start and stop services. (Which I don't remember what they are, but I do remember that they exist.)
I agree. Here's the link:
subject: Starting/Stopping Tomcat windows service through Java
WAS 6.1 on Windows - How to restart an Application Server via Windows Services
Starting Apache Tomcat Server 6
How to config tomcat 5.5 in debug ?
Problem with tomcat6X Stratup on windows vista
Tomcat 6.0.32 HTTP Status 403 - Access to the requested resource has been denied
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013