Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] File based RFC119 discovery?

Hi,

I played around a bit today with the file based service discovery implemented in bundle
org.eclipse.ecf.osgi.services.discovery.local (from ecf1.osuosl.org). It parses my 
remote-services.xml (found an example in the EclipseCon tutorial slides) but then I get a 
NPE in ...ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl.containsDiscoveredServiceID(),
because desc.getServiceID() returns null. Here "desc" is an instance of ...ecf.provider.localdiscovery. RemoteServiceEndpointDescriptionImpl, where this method just does an "return null;". 

Therefore my question: Is this already supposed to work? If yes: any idea what's missing in my setup?
Is there some complete example somewhere? I'm still using the example code I've attached to issue 277143 
(which now works with jSLP discovery, too, using the latest ECF code - thanks for the quick fix :-), added 
a remote-service.xml to the client bundle and replaced the jSLP and JmDNS bundles in the launch config by 
the two local-discovery bundles.

Cheers,
Juergen


Back to the top