camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: How to abort retry in onRedelivery processor?
Date Tue, 08 Jul 2014 17:05:46 GMT

There is a retryWhile you can use

On Tue, Jul 8, 2014 at 7:03 PM, bocamel <> wrote:
> I have an OnException for SocketTimeoutException, at context level.  The
> OnException has a redeliveryPolicy that does a number of retries.  But I
> would like to choose whether to retry based on the message that fails.  Is
> it possible to implement this control in an onRedelivery processor?  That
> is, in the onRedelivery processor, it will examine the message.  If the
> message is of certain type, then "abort" the retry and directly jump into
> the exception handling defined in the OnException?  I certainly can stop the
> route in the onRedelivery processor but that would bypass the exception
> handling defined in the OnException as well.  Any suggestion would be
> greatly appreciated?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message