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.
|