Yes. In this case, you must disable the errorHandler in the second route.

Here is a camel example showing that in action

https://svn.apache.org/repos/asf/camel/tags/camel-2.7.1/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionCallSubRouteNoErrorHandlerTest.java

Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard



2011/7/1 Zhemzhitsky Sergey <sergey_zhemzhit...@troika.ru>:
> Hi there,
>
> I'm wondering whether it is possible to propagate an exception to the parent 
> route?
>
> My configuration is the following:
>
> <route id="parent">
>  <from uri="direct://parent"/>
>  <to uri="direct://child"/>
>  <onException>
>    <exception>org.test.MyException</exception>
>    <!-do something -->
>  </onException>
> </route>
>
> <route id="child">
>   <from uri=" direct://child"/>
>   <throwException ref="myException"/>
> </route>
>
> Is it possible to handle an exception thrown in the child route in the parent 
> route?
>
> Best Regards,
> Sergey Zhemzhitsky
>
>
> _______________________________________________________
>
> The information contained in this message may be privileged and conf idential 
> and protected from disclosure. If you are not the original intended 
> recipient, you are hereby notified that any review, retransmission, 
> dissemination, or other use of, or taking of any action in reliance upon, 
> this information is prohibited. If you have received this communication in 
> error, please notify the sender immediately by replying to this message and 
> delete it from your computer. Thank you for your cooperation. Troika Dialog, 
> Russia.
> If you need assistance please contact our Contact Center  (+7495) 258 0500 or 
> go to www.troika.ru/eng/Contacts/system.wbp
>
>

Reply via email to