I suggest you to use the RouteBuilder to define the route with Java DSL.
It's the normal way that we do it,

On Tue Sep 20 21:18:50 2011, xiangqiuzhao wrote:
camelContext.addRouteDefinition(someRouteDefinition);

i look the camelContext and routeDefinition had exception handler,

i has no set exception handler on these, what the default action when the
route processor throws exception.

and where i need to set exception handler?

my route defined:

RouteDefinition route = new RouteDefinition();
route.from(uri).process(MyProcessor());

what the distinct between setErrorHandlerBuilder, onExeption,
setHandleFault.

i need to add the exception handler on camelContext and routeDefinition?

--
View this message in context: 
http://camel.465427.n5.nabble.com/why-my-Processor-throw-Exception-but-producer-can-t-throw-it-tp4821356p4822494.html
Sent from the Camel - Users mailing list archive at Nabble.com.




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang Weibo: willemjiang

Reply via email to