You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dpravin <pr...@gmail.com> on 2016/10/25 13:16:58 UTC

Purge messages from AMQ queue

Hi All,

I have a requirement to purge messages from a queue programmatically from a
camel route. Appreciate if anyone could share some approach to handle this
requirement.

Thanks,
P 



--
View this message in context: http://camel.465427.n5.nabble.com/Purge-messages-from-AMQ-queue-tp5789220.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Purge messages from AMQ queue

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I think ActiveMQ has JMX API you can use to purge queues. You can then
write some Java code that calls this JMX API which you can call from a
Camel route.

If the AMQ broker is running remotely you may consider using Jolokia
to make it easier to call remote JMX operations over HTTP bridge.

For JMX API itself I am not aware of a purge operation. You can
however delete a queue, but its not entirely the same as purge.



On Tue, Oct 25, 2016 at 3:16 PM, dpravin <pr...@gmail.com> wrote:
> Hi All,
>
> I have a requirement to purge messages from a queue programmatically from a
> camel route. Appreciate if anyone could share some approach to handle this
> requirement.
>
> Thanks,
> P
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Purge-messages-from-AMQ-queue-tp5789220.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2