Are you using 2 different OSGi bundles? And you want to route messages using Camel between them?
Then I would assume you end up with 2 CamelContexts, one for each bundle. A CamelContext is like a local Camel router so it cannot see the other CamelContext.
For that you may have to use the VM component, but I am not 100% sure it works in OSGi. But give it a try.
But I doubt that it works in OSGi.
If you are using FUSE ESB as well there is the NMR in the ESB container you can use to pass the message between the 2 Camel bundles.
Yes, i would like to pass messages between 2 osgi bundles. Each bundle would have it's own camel context. One bundle is the dispatcher the other one service implementation
I'm not sure how can i 'register' custom endpoint in nmr and access it from camel
Is it correct?
If you look at this presentation by Gert V. a Progress employee and FUSE ESB expert.
He shows how to use NRM to be able to bridge Camel in different bundles.
Starting around page 20. Page 25 is interesting.
Thanks a lot, this looks really promising. I will try that approach and post the result.
It worked for me, thanks again.
Edited by: arturs on Jun 16, 2009 5:29 PM