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.sin...@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.m...@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

Reply via email to