Hi, I have a specific route started by cron. This route is actively interacting with specific queue, but this queue can contain some stale messages when my route starts. I would like to purge this messages and work on empty queue.
I found an old question on the same topic: http://camel.465427.n5.nabble.com/delete-all-messages-in-a-jms-queue-td5731868.html#a5731874 It's said that it is possible to delete the whole queue via activemq API instead, but there is no code example there. http://activemq.apache.org/how-do-i-purge-a-queue.html There is BrokerViewMBean interface in activemq, which has removeQueue(String) or removeTopic(String) methods, but how can I access this api from camel? Thanks, Igor. -- View this message in context: http://camel.465427.n5.nabble.com/Delete-activemq-queue-purge-all-messages-dynamically-from-camel-tp5779418.html Sent from the Camel - Users mailing list archive at Nabble.com.
