Hi guys, I would like to build a container-wide exception handler and would like to know what's the best option to go considering I'm running my routes in an OSGi environment (JBoss Fuse) deployed with Blueprint DSL.
*Option 1.* I read about implementing an InterceptStrategy and expose it as a provided service and later reuse it in other bundles just by declaring <reference id="ewEH" interface="com.test.interceptor.EnvelopeWrapperEHInterceptStrategy" /> inside my blueprint.xml Is this the best option to go? What would be the best way to trigger the interceptor only when an unhandled exception happens in my routes? *Option 2.* Another way I thought was to override org.apache.camel.processor.exceptionpolicy.DefaultExceptionPolicyStrategy, but then how should I expose this as a blueprint service that other bundles could reference for camel to pick it up in a transparent way? *Option 3. * Something else?!? Regards, Henrique Viecili