Hi everyone,

Do you know if it is possible to share a single CamelContext across several
bundles ? What I'de like to do is to have several bundles contribute to a
same CamelContext. Example in pseudo code:

>From bundle A: define a context
<camel:camelContext>
  <!-- maybe some routes here -->
</camel:camelContext>

>From bundle B: contribute some routes
<!-- this one should be retrieved from OSGi in some manner -->
<camel:camelContext>
  <route>
  <from uri="seda:a_queue"/>
  <to uri="seda:another_queue"/>
</camel:camelContext>

>From bundle C:
<!-- this one should be retrieved from OSGi in some manner -->
<bean id="mybean" class="..."/>
<camel:camelContext>
  <route>
  <!-- this one is also referenced in bundle B -->
  <from uri="seda:another_queue"/>
  <to uri="bean:mybean"/>
</camel:camelContext>

-- 
View this message in context: 
http://old.nabble.com/Sharing-a-CamelContext-across-several-bundles-tp26885528p26885528.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to