Can you use the Java DSL? In this case, you can use inheritance...

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Thu, Jun 6, 2013 at 8:30 PM, javamonkey79 <[email protected]> wrote:

> 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>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/inherit-extend-camel-context-tp5733964.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to