Proper way to return a reference to another service in OSGi (local and remote) [message #651434] |
Sun, 30 January 2011 20:58 |
Michael Ihde Messages: 10 Registered: July 2009 |
Junior Member |
|
|
I have a predefined API that I need to implement where I need to return a reference to another service. For example:
public interface Service1 {
...
}
public interface Service2 {
Service1 doSomething(); // create and register Service1 and return it
}
This works with OSGi, but it seems that perhaps the proper thing to do would be to return a ServiceReference object instead of Service1.
Ultimately, I need both Service1 and Service2 to be available via remote service calls. I haven't found a good way to accomplish this with the ECF r-osgi implementation. I've thought about returning a RemoteServiceReference object or a r-osgi URI...
I appreciate any suggestions. Thanks.
~Michael
|
|
|
Powered by
FUDForum. Page generated in 0.03128 seconds