I have some boiler plate code that is needed in several camel context's, is
there a way to inherit\extend from a parent camel context? If not, is there
any other way to include boiler plate stuff, perhaps with aspects?
I have something like this copied across many routes:
<onException>
<exception>java.lang.Throwable</exception>
<redeliveryPolicy redeliveryDelay="1000" maximumRedeliveries="1" />
<bean ref="exceptionToAlertConverter" />
<to uri="direct:alerter" />
</onException>
<route id="alerterRoute">
<from uri="direct:alerter" />
<transacted ref="propagationNotSupportedTransactionPolicy" />
<to uri="someBroker://Alerter" />
</route>
there a way to inherit\extend from a parent camel context? If not, is there
any other way to include boiler plate stuff, perhaps with aspects?
I have something like this copied across many routes:
<onException>
<exception>java.lang.Throwable</exception>
<redeliveryPolicy redeliveryDelay="1000" maximumRedeliveries="1" />
<bean ref="exceptionToAlertConverter" />
<to uri="direct:alerter" />
</onException>
<route id="alerterRoute">
<from uri="direct:alerter" />
<transacted ref="propagationNotSupportedTransactionPolicy" />
<to uri="someBroker://Alerter" />
</route>