Re: Proper way to stop ActiveMQ

2016-09-09 Thread GeraldMagee
Thanks for guiding this Proper way to stop ActiveMQ - buy generic viagra most preferable and affordable medicine for ED -- View this message in context: http://activemq.2283324.n4.nabble.com/Proper-way-to-stop-ActiveMQ-tp4704801p4716361.html Sent from the ActiveMQ - User mailing list archi

Re: Proper way to stop ActiveMQ

2015-12-11 Thread khandelwalanuj
I got it. Thanks What I did: Created my own plugin which extends BrokerPluginSupport. By this I can override start() and stop() methods. Thanks, Anuj -- View this message in context: http://activemq.2283324.n4.nabble.com/Proper-way-to-stop-ActiveMQ-tp4704801p4704882.html Sent from the Activ

Re: Proper way to stop ActiveMQ

2015-12-10 Thread lichtin
The broker itself (class BrokerService) offers a method void addShutdownHook(Runnable hook) khandelwalanuj wrote > My requirement : > > I need to execute some code when I stop the broker. What is the best way > to do this ? > > Thanks, > Anuj -- View this message in context: http:

Re: Proper way to stop ActiveMQ

2015-12-09 Thread Tim Bain
Did you mean to say you're using apache-activemq-5.11.1/bin/activemq stop to stop the broker? I'm not sure what executing the command you gave earlier would do (and I don't have a broker I can try it against right now), but I wouldn't expect it to stop the broker. You can add a shutdown hook to a

Re: Proper way to stop ActiveMQ

2015-12-09 Thread khandelwalanuj
My requirement : I need to execute some code when I stop the broker. What is the best way to do this ? Thanks, Anuj -- View this message in context: http://activemq.2283324.n4.nabble.com/Proper-way-to-stop-ActiveMQ-tp4704801p4704802.html Sent from the ActiveMQ - User mailing list archive a