-
1. Re: Fuse 4.1 Http entry point - camel - custom bundles communication pat
davsclaus Jun 16, 2009 10:38 AM (in response to arturs)Hi
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.
-
2. Re: Fuse 4.1 Http entry point - camel - custom bundles communication pat
davsclaus Jun 16, 2009 10:44 AM (in response to davsclaus)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.
-
3. Re: Fuse 4.1 Http entry point - camel - custom bundles communication pat
arturs Jun 16, 2009 10:45 AM (in response to davsclaus)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
A.
-
4. Re: Fuse 4.1 Http entry point - camel - custom bundles communication pat
arturs Jun 16, 2009 10:48 AM (in response to davsclaus)I'm not sure how can i 'register' custom endpoint in nmr and access it from camel
eg.
from (...).to("nmr:MyEndpoint).
...
from ("nmr:MyEndpoint")
Is it correct?
-
5. Re: Fuse 4.1 Http entry point - camel - custom bundles communication pat
davsclaus Jun 16, 2009 10:51 AM (in response to davsclaus)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.
http://www.slideshare.net/gertv/servicemix-4-integrating-osgi-with-jbi-1439897?
Starting around page 20. Page 25 is interesting.
-
6. Re: Fuse 4.1 Http entry point - camel - custom bundles communication pat
arturs Jun 16, 2009 11:29 AM (in response to davsclaus)Thanks a lot, this looks really promising. I will try that approach and post the result.
A.
It worked for me, thanks again.
Edited by: arturs on Jun 16, 2009 5:29 PM