You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by salemi <sa...@avaya.com> on 2013/05/01 17:59:13 UTC

delete all messages in jms queue

Hi,

I need to delete all existing messages in a jms queue once of receive a
specific message. Does camel provide an option to delete all jms messages in
a queue?

Thanks,
Ali



-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/delete-all-messages-in-jms-queue-tp5731868.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: delete all messages in jms queue

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

No the JMS API has not such an api to delete a message.
http://stackoverflow.com/questions/9529214/how-to-delete-a-message-from-the-jms-queue

You can delete the queue though. But maybe that is not what you want.

But some message brokers has API that allows to delete a message / messages.
Such as ActiveMQ has:
http://activemq.apache.org/how-do-i-purge-a-queue.html

And also hawtio has a delete message(s) API: http://hawt.io/



On Wed, May 1, 2013 at 5:59 PM, salemi <sa...@avaya.com> wrote:
> Hi,
>
> I need to delete all existing messages in a jms queue once of receive a
> specific message. Does camel provide an option to delete all jms messages in
> a queue?
>
> Thanks,
> Ali
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context: http://camel.465427.n5.nabble.com/delete-all-messages-in-jms-queue-tp5731868.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: delete all messages in jms queue

Posted by Christian Müller <ch...@gmail.com>.
No. You have to use the JMS API in a processor or bean.

Sent from a mobile device
Am 01.05.2013 18:28 schrieb "salemi" <sa...@avaya.com>:

> Hi,
>
> I need to delete all existing messages in a jms queue once of receive a
> specific message. Does camel provide an option to delete all jms messages
> in
> a queue?
>
> Thanks,
> Ali
>
>
>
> -----
> Alireza Salemi
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/delete-all-messages-in-jms-queue-tp5731868.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>