2) Unlike in the java dsl, you cannot split the routes into several files
and import them.
you can use
http://camel.apache.org/direct-vm.html
or
http://camel.apache.org/vm.html
to communicate beetwen different routes;

you can share single Camel context between route builders (Spring example):
    <osgi:service interface="org.apache.camel.RoutesBuilder" ref="route" >
        <service-properties>
            <entry key="id" value="${className1}"/>
        </service-properties>
    </osgi:service>
...
<osgi:reference id="${route}" interface="org.apache.camel.RoutesBuilder" filter="(id=${className1})" />
#end
    <camel:camelContext id="${className2}">
        <camel:routeBuilder ref="${route}" />
    </camel:camelContext>


--
Regards, Alexey.

Reply via email to