L.S.,
The initial reference Geert provided is for ServiceMix 3, but the way ActiveMQ gets set up is still very much the same. We do have a clustering engine implementation for ServiceMix 4 as well (cfr. http://servicemix.apache.org/SMX4NMR/13-clustering.html), but that one only works with JBI endpoints at the moment. So one solution would be to use JBI (eg. servicemix-cxf-se or servicemix-bean) to interact with the OSGi services and get them exposed over the NMR. Your other machine would then just have to know about the endpoint name to send messages to the JBI endpoint and that way invoke the OSGi Service. Personally, I think all of this is probably quite complex so if you think that if Distributed OSGi can cover your use case, I would definitely start with that now. It's probably the easiest way to expose an OSGi Service to the outside world and to use it from another node available at the moment. Your question does make me wonder if it wouldn't be a good thing to improve the DOSGi implementation to do SOAP/JMS as well... Regards, Gert Vanthienen ------------------------ FuseSource Web: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ On Wed, Oct 26, 2011 at 6:50 PM, Jie Lee <[email protected]> wrote: > Thanks geer, just one last question... Ok that the Distributed OSGi is > about > remote transparently access, but in the NMR case how I'll find the remote > osgi endpoint for the message exchange, how I'll get the remote reference, > where I'll lookup the remote service, without the Distributed OSGi? > > Thanks in advance. > > On Wed, Oct 26, 2011 at 11:39 AM, Geert Schuring <[email protected]> > wrote: > > > Distributed OSGi is about transparantly accessing remotely hosted OSGi > > services. CXF has an implementation with useful examples: > > http://cxf.apache.org/distributed-osgi.html > > > > The NMR is specifically for message exchanges between endpoints that are > > spread across different ServiceMix containers. > > > > Geert. > > > > > > 2011/10/26 Jie Lee <[email protected]> > > > > > Thanks Geert. Do you know if is possible to install the DOSGi bundles > to > > > get > > > a distributed solution of ServiceMix. > > > I would like to be able to call a remote OSGi service like in DOSGi, is > > it > > > possible, or I don't need to get DOSGi bundles instaled to do this? > > > > > > > > > Thanks again. > > > > > > On Wed, Oct 26, 2011 at 9:11 AM, Geert Schuring <[email protected]> > > wrote: > > > > > > > Zan Jie Lee, > > > > You could use http://servicemix.apache.org/clustering.html as a > > starting > > > > point. > > > > > > > > Kind regards, > > > > Geert Schuring. > > > > > > > > 2011/10/26 Jie Lee <[email protected]> > > > > > > > > > It's possible to make a communication between two osgi services in > > two > > > > > different servicemix container, passing through the NMR? How can I > > find > > > > the > > > > > osgi service in the other container? > > > > > > > > > > Where can I find some documentation or example about? > > > > > > > > > > > > > > > Thanks > > > > > > > > > > -- > > > > > []'s > > > > > > > > > > Zan Jie Lee > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > []'s > > > > > > Zan Jie Lee > > > > > > > > > > > > > > > -- > []'s > > Zan Jie Lee >
