Venkatesh, If you find the solution, please contribute in this thread: http://stackoverflow.com/questions/19779558/best-way-to-build-a-container-wide-exception-handler-in-osgi-with-camel
I've tried for a while but could not solve it in an abstract way Regards, Henrique Viecili Henrique Viecili On 9 July 2014 04:15, Venkatesh <[email protected]> wrote: > Hi, > I have multiple camelContexts - each has multiple routes - we kind of > segregated the routes into camel contexts by domain. Right now, the need is > to have a consistent exception strategy across all the camel contexts; it > is > like, having a set of onException clauses that is applicable for all the > camel contexts; having the same set of onException clauses in each camel > context will bring the maintenance problems; so I want to have the set of > onException clauses written once but apply them in all the camel contexts; > > It looks like, there is an option if I use Java DSL as mentioned in > > http://camel.465427.n5.nabble.com/onException-Global-declaration-at-CamelHttpTransportServlet-and-bestpractices-td5732428.html#a5732491 > but I am using blueprint. > > is there a way to write onException clause in one place but use them in > more > than one camel contexts? > > Thanks > Venkatesh Laguduva > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/onException-for-multiple-camelContexts-tp5753559.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
