activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: how to stop AMQ gracefully?
Date Thu, 05 May 2011 10:08:02 GMT
calling the stop method on the brokerService is what is needed.
That has a @PreDestroy annotation so spring should do the right thing
when the application context is destroyed.
You may need to include <context:annotation-config /> in your spring
xml to have the annotation respected.

2011/5/1 Michal Singer <Michal.Singer@expand.com>:
> Hi, I am using windows, and activemq is embedded in  Spring so this does not work,
> Any ideas how to do it this way?
> Thanks, Michal
>
> -----Original Message-----
> From: manua [mailto:agarwal.manu@gmail.com]
> Sent: ה 28 אפריל 2011 16:37
> To: users@activemq.apache.org
> Subject: Re: how to stop AMQ gracefully?
>
> Hi Michal,
>
> assuming, you are running activemq from linux box,
>
> just go to the activemq folder and give the command,
>
> bin/activemq stop
>
> This will stop the activemq. You can also check your activemq status in the
> same way as,
>
> bin/activemq status.
>
> I am not sure about windows setup.
>
> Thanks,
> Manu
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/how-to-stop-AMQ-gracefully-tp3480334p3481018.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://blog.garytully.com
http://fusesource.com

Mime
View raw message