camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Purge messages from AMQ queue
Date Sat, 29 Oct 2016 11:35:43 GMT

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 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

View raw message