I am starting the embedded tomcat success开发者_JAVA百科fully through Java program. But I am unable to stop the tomcat server. How do I stop tomcat through a Java program?.
See: howto-embed-tomcat-6
and/or see this as well
http://onjava.com/pub/a/onjava/2002/04/03/tomcat.html
How about a System.exec ("tomcatInstallPath/bin/shutdown.sh")
Just a sugestion, I've never tried it. I just like quick/fast/direct solutions.
精彩评论