Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Proper way to return a reference to another service in OSGi (local and remote)
Proper way to return a reference to another service in OSGi (local and remote) [message #651434] Sun, 30 January 2011 20:58
Michael Ihde is currently offline Michael IhdeFriend
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
Previous Topic:Bundle pools
Next Topic:[P2] is it possible to launch .exe with touchpoint?
Goto Forum:
  


Current Time: Fri Apr 19 18:28:34 GMT 2024

Powered by FUDForum. Page generated in 0.03128 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top