tomcat startup

I am looking for a java program that could startup and shutdown tomcat.
[78 byte] By [ujavasun] at [2007-9-30 20:47:06]
# 1
Well, shuting down is just a matter of sending it a bit of text on a special port defined in the tomcat configuaration.Starting it up is a matter of running a Java program, which you could no-doubt do simply by loading Tomcat's main class and invoking main.
malcolmmc at 2007-7-7 2:20:17 > top of Java-index,Java Essentials,Java Programming...
# 2
why dont you want to start or stop using the files provided by tomcat?If you want to start Tomcat from a JAVA application then do this,Runtime.getRuntime().exec("cmd /c start <path for start..cmd file>");This would kick off the process.Cheers-P
prashanth_kuppur at 2007-7-7 2:20:17 > top of Java-index,Java Essentials,Java Programming...