Reputation: 1677
I am starting the embedded tomcat successfully through Java program. But I am unable to stop the tomcat server. How do I stop tomcat through a Java program?.
Upvotes: 0
Views: 2582
Reputation: 3611
How about a System.exec ("tomcatInstallPath/bin/shutdown.sh")
Just a sugestion, I've never tried it. I just like quick/fast/direct solutions.
Upvotes: 0
Reputation: 14548
and/or see this as well
http://onjava.com/pub/a/onjava/2002/04/03/tomcat.html
Upvotes: 0