[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Remote service registration and discovery in an eclipse product

Am 30.01.2011 19:57, schrieb Martin Petzold:
Am 30.01.2011 19:22, schrieb Markus Alexander Kuppe:
On 01/30/2011 07:17 PM, Martin Petzold wrote:
Hi Scott,

Bundles seem to be okay. Distribution seems to work, just the discovery
doesn't. Hm, it's also not a Windows problem, the same with Linux.

18 ACTIVE org.eclipse.ecf.provider.jmdns_4.1.0.v20101029-1626
Try setting the system property net.mdns.interface to the IP address you
want JmDNS to bind to. E.g. -Dnet.mdns.interface=192.168.1.1

Still not working.

It must be something about the launch via OSGi Framework vs. Eclipse Application.

It's also not working with zookeeper dicovery (in the product, with OSGi Framework launch still working!). But with now I can see that discovery does discover the service but does not invoke the Trackers etc.!


-----

// Start a zookeeper centralized discovery
try {
IContainer container = ContainerFactory.getDefault().createContainer("ecf.discovery.zoodiscovery");
ID target = container.getConnectNamespace().createInstance(
new String[] { "zoodiscovery.flavor.centralized=" + InetAddress.getLocalHost().getHostAddress()});
container.connect(target, null);
} catch(ContainerCreateException e) {
e.printStackTrace();
}


-----

ZooDiscovery> Discovery Service Activated. 31.01.2011 20:42:12.
ZooDiscovery> Service Discovered: 31.01.2011 20:42:45. ServiceInfo[uri=osgiservices://jumper:9280/svc_sZkYsaf2SmbVIzQ8yhv8wxeqyCE=;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://jumper:9280/svc_sZkYsaf2SmbVIzQ8yhv8wxeqyCE=;full=_osgiservices._tcp.default._iana@osgiservices://jumper:9280/svc_sZkYsaf2SmbVIzQ8yhv8wxeqyCE=];priority=0;weight=0;props=ServiceProperties[{osgi.remote.service.interfaces=devsosgi.INode, ecf.rsvc.ns=ecf.namespace.r_osgi.remoteservice, ecf.sp.cns=ecf.namespace.r_osgi, ecf.sp.ect=ecf.r_osgi.peer, ecf.rsvc.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@29eb0cd0, org.eclipse.ecf.internal.discovery.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@6964130, ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@7291b9b0, nodeId=8c8bf50c-b218-49ec-a7bb-ad05ee4e3013}]]