camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gilboy <josephoto...@gmail.com>
Subject error handling query
Date Mon, 01 Oct 2012 18:58:46 GMT
Hi

I noticed that most endpoint consumers do something like the following:

try{
   getprocessor().process(exchange);
} catch (exception e){
   getExceptionHandler.handleException();
}

Assume I have a route which consumes data from an endpoint whose consumer
uses the above logic. Also assume that the route is a simple pipeline which
has 4 processors and I define the default error handler to have 5 retries.

If an exception is thrown in the first processor will camel try to replay
the exchange through the first processor 4 more times?

I am certain that camel will try to replay the exchange if processor 2-4
throw an exception but not clear to me how it will behave if the first
processor throws an exception

Thanks
Joe



--
View this message in context: http://camel.465427.n5.nabble.com/error-handling-query-tp5720326.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message