On 9/20/11 12:23 PM, xiangqiuzhao wrote:
Producer producer = endpoint.createProducer();
producer.process(exchange); //throw an Exception
return (Map<String, Object>)exchange.getOut().getBody(); //why run to
here?
my route defined
from("direct://test").process(ProcesssA).to("myComponent://").process(ProcessB);
if my ProcessA throw an Exception, but why it continue to call myComponent
and processB.
That is because the Camel Error Handler[1] can catch the error and do
some work for you.
I'm not sure which kind of error handler you configured for you route.
--
View this message in context:
http://camel.465427.n5.nabble.com/why-my-Processor-throw-Exception-but-producer-can-t-throw-it-tp4821356p4821356.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