On Thu, Aug 19, 2010 at 1:45 AM, BenXS <bxsto...@yahoo.co.uk> wrote: > > Assume I have a running ActiveMQ Messagebroker (under WinXP). > > Currently I stop/shutdown the server by pressing Ctrl+C in the CommandPrompt > Terminal window. > Then ActiveMQ stops/shutdown. > > I am searching now for a way to stop/shutdown the server DIRECTLY from the > command line e.g. from a batch script WITHOUT having manually to press > CTRL+C > > Is there such a way? > > I can imagine that I can enter at the command line something like > > activemq.bat /stop > > or > > java -jar run.jar --restart > > which des the job for me
Linux/Unix: ./bin/activemq-admin start ./bin/activemq-admin stop Windows: .\bin\activemq-admin.bat start .\bin\activemq-admin.bat stop You will need to uncomment the SUNJMX variable in the activemq-admin script because JMX is required for the start/stop operations to work successfully. For more info, see the following page on the ActiveMQ website: http://activemq.apache.org/activemq-command-line-tools-reference.html Bruce -- perl -e 'print unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' ActiveMQ in Action: http://bit.ly/2je6cQ Blog: http://bruceblog.org/ Twitter: http://twitter.com/brucesnyder