Re: delay on Exception is not working

2012-08-14 Thread Sri
Its redeliveryDelay() on Exception not delay() the following routes works onException(RestClient500SeriesException.class) .maximumRedeliveries(retries).redeliveryDelay(retryDelay) .process(dispatch5

Re: delay on Exception is not working

2012-08-14 Thread Sri
is there any other way that I can use delay , I am trying to use redelivery policy and I am using spring java Configuration for instatiating beans @Bean RedeliveryPolicy dispatcherRedeliveryPolicy(){ return policy; } onException(RestClient500SeriesException.class).redeliveryPolicyRef(dispatcher

Re: delay on Exception is not working

2012-08-14 Thread Claus Ibsen
Maybe its the AMQ broker the retrys. Are you sure its Camel, and that the onException is being triggered. We got a zillion tests in camel, so I think its something wrong on your end. On Tue, Aug 14, 2012 at 4:31 PM, Sri wrote: > Hi, > > I am using camel onException() cluase with redeliveries(3).