On Fri, Nov 4, 2011 at 10:39 AM, Preben.Asmussen <[email protected]> wrote:
> Hi
>
> How about a feature on the RedeliveryPolicy where you would be able to
> suspend or stop a route or even context when the retries gets exhausted ?
>
> Something like :
> <onException>
>                <exception>java.lang.Exception</exception>
>                <redeliveryPolicy backOffMultiplier="2" maximumRedeliveries="3"
> redeliveryDelay="1000"
>                        useExponentialBackOff="true" logRetryAttempted="true"
> retryAttemptedLogLevel="WARN"         onExhausted="suspend"/>
> </onException>
>
> You would then be able to inspect and fix the problem, and then later on
> resume the route.
>
> Sometimes DeadletterQueues are not an option when you have in sequence
> requirements,  and at the same time are not allowed to loose messages.
>

You can use a custom processor / bean, where you can do whatever you want
such as stopping a route etc.

See this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

> /Preben
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Possibility-to-suspend-route-or-context-in-RedeliveryPolicy-tp4963505p4963505.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to