Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

inter-bundle camel routing

$
0
0
Hi,
I have a question about how to route messages between OSGi bundles within
the same container. If I have two bundles, B1 and B2, which have their own
camel routes and I want them to send messages to each other, say from B1 to
B2, what's the best practice approach on how to do this?

So for example I have B1 having:
<from uri="jetty:http://0.0.0.0:8080/myUri">
<to uri="direct:otherRoute"/>
</from>

and B2 having:
<from uri="direct:otherRoute">
<process ref="someBean"/>
</from>

This will only work if both routes are within the same camel context, but if
I wanted something comparable where the two routes sit on different bundles
within the same container.

I've seen similar postings about something similar over the years but I'm
asking again in case there's something newer that is recommended for
camel/osgi.

Viewing all articles
Browse latest Browse all 5648

Trending Articles