Hi I thought I have answered this one
Using onException(IOException.class).maximumRedeliveries(5); will solve that as it will NOT detour the route as the sample below does to move it to seda:errors. The one above will only tell Camel to try IO exception 5 times. And that works with the failover as well. You got all the other redeliver option to configure as well for delays and much more. And you can define multiple on exception for different settings per exception type. And onException accepts N exception as well so you can group it. On Tue, Aug 18, 2009 at 3:56 PM, Ryadh Amar<[email protected]> wrote: > > Hi, > You can use the following, using the onException construct: > ================================================================= > > onException(javax.naming.NamingException.class).maximumRedeliveries(3) > .to("seda:errors"); > ================================================================= > HTH, > Ryadh. > > > Carlo Camerino-2 wrote: >> >> Hi, >> >> Is there an option for camel to failover after a certain number of times >> that an exception occurs. >> Camel has failover for different types of exceptions, >> >> from("activemq:ab").failover(IOException.class).to("x", "y","z"); >> >> can i specify the failover to occur this number of times before moving to >> y >> for example. >> >> If i encounter five io exceptions, then i move to y, then move to z >> >> Is there are such a feature ? >> >> Thanks >> Carlo >> >> > > -- > View this message in context: > http://www.nabble.com/Camel-2.0-Failover-Questions-tp24802157p25025424.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
