Hi Bruce, Thanks!
I tried enabling the JMX using each of the following options, but still was unable to stop the server using the "activemq-admin stop" command: ------------------------------------------------------------------------------------------------------------------------------------------ 1. Added useJmx="true" (within <broker> element) in the conf/activemq.xml and started the server using the following command: ./activemq xbean:../conf/activemq.xml 2. Tried started the server as follows: "activemq broker:(tcp://localhost:61616, tcp://localhost:5000)?useJmx=true" as given in documentation, but this fails to start. I got this error "bash: syntax error near unexpected token `('" 3. Set this option in environment using export: "export SUNJMX="-Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote=true"" and then started the activemq like this: ./activemq On stopping using "./activemq-admin stop" I got the following error: "./activemq-admin stop Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.BindException: Address already in use" ------------------------------------------------------------------------------------------------------------------------------------------ Can you please help? Thanks. Kind Regards, Janesh bsnyder wrote: > > On Thu, Aug 7, 2008 at 9:40 PM, Janesh S <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I want to use activemq on a linux server. I have installed activemq >> 5.1.0. I >> could run the server by invoking the activemq executable directly. But I >> do >> not find a way to gracefully shutdown the server as there is no shutdown >> script/executable present in the bin directory. >> >> I read the following document which tells how to make the activemq a >> service >> - http://activemq.apache.org/unix-service.html. But this also needs the >> shutdown script. >> >> I copied the shutdown script from the activemq 4 distribution, but that >> did >> not work. Then I experimented shutting down using the various documented >> stop option(s) using - run.jar, activemq-admin etc, but without any >> success. >> >> Can someone help me with graceful shutdown? > > Use the activemq-admin script that is in the bin directory. It's > described here: > > http://activemq.apache.org/activemq-command-line-tools-reference.html > > Just run it like this: > > $ ./bin/activemq-admin stop > > Just note that you must first enable JMX in the activemq startup > script for the activemq-admin script to work correctly. > > Bruce > -- > perl -e 'print > unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" > );' > > Apache ActiveMQ - http://activemq.org/ > Apache Camel - http://activemq.org/camel/ > Apache ServiceMix - http://servicemix.org/ > > Blog: http://bruceblog.org/ > > -- View this message in context: http://www.nabble.com/How-to-shutdown-activemq-5.1.0-server--tp18884711p18887750.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.