camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryadh Amar <magnetic.gan...@gmail.com>
Subject Re: Camel 2.0 Failover Questions
Date Tue, 18 Aug 2009 13:56:14 GMT

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.


Mime
View raw message