On 26/02/2010 12:59, Joseph Morgan wrote:
You can send any system command through a Java program.  Are you developing or 
working with some kind of management tool and you want to know how to program 
it to stop Tomcat???

It depends on if you are running tomcat as a service or not, but either way, 
you're going send your commands from java through code looking something like 
this:

Runtime.getRuntime().exec("command to shut down tomcat");

Or one of the exec variants, depending on what you need to do.

Or just connect to the appropriate port, and send the shutdown command.


p

-----Original Message-----
From: dBenjamin [mailto:d...@mail.com]
Sent: Thursday, February 25, 2010 10:30 PM
To: users@tomcat.apache.org
Subject: Java programm to Shutdwon the tomcat server


Thanks for helping developers…
Can you please help me I am facing problem to shutdown the tomcat server in
windows platform (xp, vista, windows7).
if you click CTRL+ C in the tomcat console window, server getting shutdown.
Like that is any specific command to send through java program to shutdown
the tomcat server.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to