I have a server running many JAVA application's with tomcat 6.0.18, i need to know how can i scheduele a shutdown of just 'X' application and keep other's running.
I'll appreciate your ideas
thanks
Take a look at this: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Supported%20Manager%20Commands
or move your mouse to the "Stop" link on the Tomcat Manager Web UI, and look at the status bar you will see the URL to stop that app. You can call it with a script via wget, curl, lynx, ...
Access Tomcat Manager via URL http://ip:8080/manager, you will see a list of running applications. And from this, you can stop any webapp which you want.
I use wget to stop et start applications the user in tomcat-user.xml must have manager-script roles For TOMCAT 5,6:
wget "http://<user>:<password>@<servername>:<port>/manager/stop?=/<application context>" -O - -q
wget "http://<user>:<password>@<servername>:<port>/manager/start?=/<application context>" -O - -q
Since TOMCAT 7 (7.0.62 for my installation) you have to add /text/ after manager:
wget "http://<user>:<password>@<servername>:<port>/manager/text/stop?=/<application context>" -O - -q
wget "http://<user>:<password>@<servername>:<port>/manager/text/start?=/<application context>" -O - -q
Hope it's helpful