开发者

How to stop tomcat through a Java program?

开发者 https://www.devze.com 2023-02-05 02:27 出处:网络
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-6and

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消