On Fri, Jan 27, 2012 at 9:01 AM, s_albrecht <[email protected]> wrote:
> Hi All,
>
> I am using camel 2.8.1 and want to do the following:
> - Route A calls Route B (via direct endpoint)
> - Route B does some error handling like - completely handling exception,
> converting exception to another type and throw the converted, let exception
> through
> - Route A adds some more error handling: handle the exceptions, which have
> been let through by route B or those, which have been converted by route B
> from another exception
>
> I have found no way to do this, is this possible at all, and if yes, how to
> accomplish that ?
>
> Another thing: If an exception occurs within a split block, I see that
> splitting continues, that is, the split block is executed with the next
> element. How do I break this, so that once an exception occurs the initial
> exchange is not splitted further ?
>

Read the documentation. See the Splitter EIP
http://camel.apache.org/splitter

There is an option to stop on exception.


> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Exception-Handling-with-Subroutes-incl-Splits-tp5434732p5434732.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to