On Thu, Jul 12, 2012 at 6:09 PM, smadarapu <srikanth.madar...@adp.com> wrote: > I think i figured it out, the "onException" set up is per RouteBuilder and > not per Route, so I removed the onException setup from route to the route > builder and it is working as i want it. > > What i still don't understand is why does the Route definition supports the > "onException" setup, what is the purpose? > > Also the per route builder setup adds a limitation that I cannot have the > definition of two routes (in the same RouteBuilder class) that need > different handling of the same exception. >
A route can have a N+ route scoped onException's. That is possible. If you put onException outside (from) then its scoped for the current RouteBuilder class. > Thanks > Srikanth > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Exception-handling-in-Camel-Routes-tp5715952p5715962.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen