Hi,
See the code snipped below.
I'm using the timer endpoint to execute some route periodically, and it
works until I add error handler. If errorHandler(..) is included, the
process doesn't stay up and running but instead it does all the
initialization and exits gracefully.
RouteBuilder routeBuilder = new RouteBuilder(){
public void configure() throws Exception {
onException(RuntimeCamelException.class).handled(true);
errorHandler(loggingErrorHandler(getClass().getName())); //Here's the
problem
String executionTriggerUri = "timer:executionTimer"
+ "?fixedRate=true"
+ "&daemon=true"
+ "&period=5000";
from(executionTriggerUri).to("bean:someBean");
}
}
--
View this message in context:
http://www.nabble.com/Timer-endpoint-and-errorHandler-tp23366970p23366970.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.