Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] Remote service publication

Hi,

I see this service publication but the helloTracker does not get
activated. I'm sure it is because of the missing objectClass propery
and the "service.imported" flag this tracker is listening for.

HOST:


osgi> ZooDiscovery> Discovery Service Activated. May 19, 2010 1:42:01 AM.
[log;+0200 2010.05.19
01:42:01:389;INFO;org.eclipse.ecf.osgi.services.distribution;OSGi ECF
service discovery: publish
	serviceReference={org.eclipse.ecf.osgi.services.discovery.ServicePublication}={osgi.remote.discovery.publication.service.properties={},
ecf.rsvc.ns=ecf.namespace.r_osgi.remoteservice,
osgi.remote.service.interfaces=[org.eclipse.ecf.examples.remoteservices.hello.IHello],
ecf.rsvc.id=[53,53], ecf.sp.ect=[ecf.r_osgi.peer],
ecf.sp.cid=r-osgi://localhost:9278, service.id=56}
	serviceInfo
		location=osgiservices://172.17.2.196:9278/svc_55
		serviceID=class
org.eclipse.ecf.provider.zookeeper.core.ZooDiscoveryNamespace:_osgiservices._tcp.default._iana@osgiservices://172.17.2.196:9278/svc_55
		serviceName=svc_55
		priority=0
		weight=0
		discoveryServiceProperties
			name=ecf.rsvc.ns;value[String]=ecf.namespace.r_osgi.remoteservice
			name=osgi.remote.service.interfaces;value[String]=org.eclipse.ecf.examples.remoteservices.hello.IHello
			name=ecf.sp.cns;value[String]=ecf.namespace.r_osgi
			name=ecf.rsvc.id;value[bytes]=[53,53],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@76fba0
			name=ecf.sp.ect;value[String]=ecf.r_osgi.peer
			name=ecf.sp.cid;value[bytes]=[114,45,111,115,103,105,58,47,47,108,111,99,97,108,104,111,115,116,58,57,50,55,56],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@181ed9e
		osgiServiceProperties
			osgiServiceInterfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello
			endpointSupportedConfigs=ecf.r_osgi.peer
			endpointContainerID=r-osgi://localhost:9278
			endpointContainerIDNamespace=ecf.namespace.r_osgi
			remoteServiceID=55
			remoteServiceIDNamespace=ecf.namespace.r_osgi.remoteservice
]
2001
ZooDiscovery> Service Published: May 19, 2010 1:42:01 AM.
ServiceInfo[uri=osgiservices://172.17.2.196:9278/svc_55;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=osgiservices://172.17.2.196:9278/svc_55;full=_osgiservices._tcp.default._iana@osgiservices://172.17.2.196:9278/svc_55];priority=0;weight=0;props=ServiceProperties[{ecf.rsvc.ns=ecf.namespace.r_osgi.remoteservice,
osgi.remote.service.interfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello,
ecf.sp.cns=ecf.namespace.r_osgi,
ecf.rsvc.id=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@76fba0,
ecf.sp.ect=ecf.r_osgi.peer,
ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@181ed9e}]]
[log;+0200 2010.05.19
01:42:01:598;INFO;org.eclipse.ecf.examples.remoteservices.hello.host;OSGi
ECF service distribution: registered
	serviceReference={org.eclipse.ecf.examples.remoteservices.hello.IHello}={org.eclipse.ecf.containerFactoryArgs=r-osgi://localhost:9278,
service.exported.configs=ecf.r_osgi.peer,
service.exported.interfaces=*, service.id=54}
	remoteServiceContainer
		ID=r-osgi://localhost:9278
		connectedID=null
	remoteServiceRegistration
		remoteServiceID=r_osgiremoteservice:r-osgi://localhost:9278/55
		properties
			name=service.id;value[java.lang.Long]=55
			name=objectClass;value[java.lang.String[]]=[org.eclipse.ecf.examples.remoteservices.hello.IHello]
			name=service.remote.registration;value[java.lang.Boolean]=true
			name=ecf.rsvc.ranking;value[java.lang.Integer]=0
			name=ecf.rsvc.id;value[java.lang.Long]=55
			name=ecf.robjectClass;value[java.lang.String[]]=[org.eclipse.ecf.examples.remoteservices.hello.IHello]
			name=ecf.rsvc.cid;value[org.eclipse.ecf.provider.r_osgi.identity.R_OSGiID]=r-osgi://localhost:9278
]
Host: Hello Service Registered
[log;+0200 2010.05.19
01:42:01:640;ERROR;org.eclipse.ecf.osgi.services.distribution;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.distribution;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl:handleDiscoveredServiceAvailable:getRemoteServiceReferences
result is empty. containerHelper=RemoteServiceContainer
[containerID=r-osgi://orillius:9278,
container=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@174d93a,
containerAdapter=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@174d93a]remoteReferences=null;severity4;exception=null;children=[]]]


CONSUMER:

osgi> ZooDiscovery> Discovery Service Activated. May 19, 2010 1:41:59 AM.
2002
ZooDiscovery> Service Discovered: May 19, 2010 1:42:03 AM.
ServiceInfo[uri=172.17.2.196;id=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=172.17.2.196;full=_osgiservices._tcp.default._iana@172.17.2.196];priority=0;weight=0;props=ServiceProperties[{osgi.remote.service.interfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello,
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@e576d4,
ecf.sp.cid=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@dc86eb}]]
[log;+0200 2010.05.19
01:42:03:832;INFO;org.eclipse.ecf.osgi.services.discovery;OSGi ECF
service discovery: remote service discovered
	serviceInfo
		location=172.17.2.196
		serviceID=class
org.eclipse.ecf.provider.zookeeper.core.ZooDiscoveryNamespace:_osgiservices._tcp.default._iana@172.17.2.196
		priority=0
		weight=0
		discoveryServiceProperties
			name=osgi.remote.service.interfaces;value[String]=org.eclipse.ecf.examples.remoteservices.hello.IHello
			name=ecf.rsvc.ns;value[String]=ecf.namespace.r_osgi.remoteservice
			name=ecf.sp.cns;value[String]=ecf.namespace.r_osgi
			name=ecf.sp.ect;value[String]=ecf.r_osgi.peer
			name=ecf.rsvc.id;value[bytes]=[53,53],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@e576d4
			name=ecf.sp.cid;value[bytes]=[114,45,111,115,103,105,58,47,47,108,111,99,97,108,104,111,115,116,58,57,50,55,56],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@dc86eb
		osgiServiceProperties
			osgiServiceInterfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello
			endpointSupportedConfigs=ecf.r_osgi.peer
			endpointContainerID=r-osgi://localhost:9278
			endpointContainerIDNamespace=ecf.namespace.r_osgi
			remoteServiceID=55
			remoteServiceIDNamespace=ecf.namespace.r_osgi.remoteservice
]
[log;+0200 2010.05.19
01:42:03:841;INFO;org.eclipse.ecf.osgi.services.distribution;OSGi ECF
service distribution: retrievingRemoteServiceReferences
	endpointDescription=RemoteServiceEndpointDescriptionImpl[svcInterfaces=[org.eclipse.ecf.examples.remoteservices.hello.IHello];supportedConfigTypes=[ecf.r_osgi.peer];serviceIntents=null;location=null;remoteServiceId=55;discoveryServiceID=ServiceID[type=ServiceTypeID[typeName=_osgiservices._tcp.default._iana];location=172.17.2.196;full=_osgiservices._tcp.default._iana@172.17.2.196];endpointID=null;endpointAsID=r-osgi://localhost:9278;connectTargetID=null;remoteServicesFilter=null;props={ecf.rsvc.ns=ecf.namespace.r_osgi.remoteservice,
osgi.remote.service.interfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello,
ecf.sp.cns=ecf.namespace.r_osgi, ecf.rsvc.id=[B@e576d4,
ecf.sp.ect=ecf.r_osgi.peer, ecf.sp.cid=[B@dc86eb}]
	remoteServiceContainer
		ID=r-osgi://orillius:9278
		connectedID=null
]
[log;+0200 2010.05.19
01:42:03:871;ERROR;org.eclipse.ecf.osgi.services.distribution;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.distribution;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.DiscoveredServiceTrackerImpl:handleDiscoveredServiceAvailable:getRemoteServiceReferences
result is empty. containerHelper=RemoteServiceContainer
[containerID=r-osgi://orillius:9278,
container=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@1de45e2,
containerAdapter=org.eclipse.ecf.internal.provider.r_osgi.R_OSGiRemoteServiceContainer@1de45e2]remoteReferences=null;severity4;exception=null;children=[]]]


Back to the top