On Mon, Aug 8, 2011 at 3:13 PM, wing-tung Leung <[email protected]> wrote: > I have a route where I perform some XSD validation first, and after > that a HTTP download. The XSD validation is "optional", meaning that > failure is simply logged but should not block the rest of the flow, > while HTTP download exceptions should abort. > > I have defined two separate "onException" blocks, one for the > "ValidationException" with "continued" enabled, and another for the > "HttpOperationFailedException". They both seem to work fine > independently, but for some reason, capturing both exceptions is not > possible. > > Initially, I assumed that after the "silent" handling of > ValidationException, the second exception (HTTP) handler would kick > in, but it's never called. Is this because only 1 "onException" > handler can be called per route? > > Wrapping the first XSD check into a explicit doTry/doCatch does work > like I expected .. > > Someone some suggestion how to implement this best? >
What version of Camel are you using? > Many thanks! > > Tung > -- 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/
