I think you might be interested in knowing how to drain messages. I learned a helpful way to do it via JMX you can call the *purge()* method on the QueueViewMBean. It should delete all messages in the queue for you. Not sure if that is available in the version of activemq your using. To get access to JMX you can use jconsole. Another option could also be to use the activemq-admin which should let you purge. Here is a helpful link for more details. Hope it helps:
http://fusesource.com/docs/broker/5.5/admin_guide/activemq-admin_purge.html Hope it helps On Thu, May 1, 2014 at 2:24 PM, artnaseef <[email protected]> wrote: > The procedure is: > > * Shutdown 5.5.1 broker > * Startup 5.9 broker > > If the AMQ persistence adapter was being used, then it will be necessary to > migrate to KahaDB or LevelDB. In that case: > > * Drain messages from 5.5.1 broker > * Shutdown 5.5.1 broker > * Startup 5.9 broker > > Draining messages is best done by the applications using ActiveMQ, if > feasible. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Upgrade-from-5-5-1-to-5-9-tp4680777p4680784.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >
