camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen">
Subject RE: send a notification and keep the bad message in the queue
Date Mon, 09 Jun 2008 14:10:20 GMT

If you want to keep the bad message in the original queue, then you are also blocking the
messages that has arrived on the queue after the bad message.

By default Camel will retry consuming a message up til 6 times before its moved to the default
dead letter queue.

If you configure the dead letter channel to use maximumRedeliveries = -1 then Camel will retry

When you consume a message you can check the in message header "org.apache.camel.redeliveryCount"
that contains the number of times it has been redlivered.

Or "org.apache.camel.Redelivered" that contains a boolean if its redelivered or if its the
first time the message is processed.

Med venlig hilsen
Claus Ibsen
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
-----Original Message-----
From: pevgen [] 
Sent: 9. juni 2008 15:49
Subject: send a notification and keep the bad message in the queue


I use activeMQ endpoints. I want to send a notification to admin and keep
the bad message in the queue. because when admin will repair the broken
to-endpoint, the message must try to send again.

Can I do it ?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message