Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Getting the hello examples to work with Zoodiscovery

On 04/28/2010 02:56 PM, Patrick D. wrote:

> At that point, I'm really close to get the examples working, however I
> have no idea what to do with the ServiceInfo Object. After discovering a
> service in a ServiceListener, how do I get an actual reference to the
> service? What exactly do I put into a ServiceInfo? Do I even need it, or
> is there some way to get it to work with the ServiceTracker who gets the
> references directly?


Hi Patrick,

if you mean by reference an OSGi reference to the service, you cannot
get this reference from a IServiceInfo. An IServiceInfo really only
tells you that there is a service with the given properties available at
a specific location. Thus you either have to a) explicitly connect to
the service manually at the given location or e.g. have OSGi remote
services [0] do it for you.

Markus

[0] http://wiki.eclipse.org/OSGi_4.2_Remote_Services_and_ECF


Back to the top