You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by liteoid <ar...@yahoo.com> on 2012/02/09 01:51:59 UTC

temporarily suspend retry processing ?

I am using camel with JMS and using the Dead Letter Channel mechanism to
handle retries

Wondering if there is a way to temporarily suspend retries - use case is
scheduled outages

Was thinking of a timer based file poller to check for a flag that
determines if a scheduled outage 
is in effect and that retry should not happen

Any tips/pointers would be appreciated - want to avoid a custom
implementation if possible..

tia

Arun

--
View this message in context: http://camel.465427.n5.nabble.com/temporarily-suspend-retry-processing-tp5468197p5468197.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: temporarily suspend retry processing ?

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

There is a retryWhile you can use and implement logic to say
true|false if a retry should be executed or not.
http://camel.apache.org/exception-clause.html


On Thu, Feb 9, 2012 at 1:51 AM, liteoid <ar...@yahoo.com> wrote:
>
> I am using camel with JMS and using the Dead Letter Channel mechanism to
> handle retries
>
> Wondering if there is a way to temporarily suspend retries - use case is
> scheduled outages
>
> Was thinking of a timer based file poller to check for a flag that
> determines if a scheduled outage
> is in effect and that retry should not happen
>
> Any tips/pointers would be appreciated - want to avoid a custom
> implementation if possible..
>
> tia
>
> Arun
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/temporarily-suspend-retry-processing-tp5468197p5468197.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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