| Author |
Starting/Stopping Tomcat windows service through Java
|
John Farrel
Ranch Hand
Joined: May 24, 2010
Posts: 65
|
|
I am writing a system to deploy tomcat 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?
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16483
|
|
|
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.)
|
 |
 |
|
|
subject: Starting/Stopping Tomcat windows service through Java
|
|
|