[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Zookeeper Discovery Examples released to HEAD
|
Hi Wim
I took the example and ecf jars from head.But for Zookeeper hello example,my consumer is not able to get any remote service notification
Please find my console output
Consumer console:
osgi> ZooDiscovery> Discovery Service Activated. 23 May, 2010 2:53:56 PM.
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.server.ZooKeeperServer).
log4j:WARN Please initialize the log4j system properly.
2002
Host Console:
osgi> ZooDiscovery> Discovery Service Activated. 23 May, 2010 2:53:52 PM.
[log;+0530 2010.05.23 14:53:52:255;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.generic.remoteservice, osgi.remote.service.interfaces=[org.eclipse.ecf.examples.remoteservices.hello.IHello],
ecf.rsvc.id=[48], ecf.sp.ect=[ecf.generic.server], ecf.sp.cid=StringID[ecftcp://localhost:5782/server],
service.id=52}
serviceInfo
serviceName=svc_6sZA+kuiRb4gWsgJt9MKUA5ZMdM=
priority=0
weight=0
discoveryServiceProperties
name=ecf.rsvc.ns;value[String]=ecf.namespace.generic.remoteservice
name=osgi.remote.service.interfaces;value[String]=org.eclipse.ecf.examples.remoteservices.hello.IHello
name=ecf.sp.cns;value[String]=org.eclipse.ecf.core.identity.StringID
name=
ecf.rsvc.id;value[bytes]=[48],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@730efd7c
name=ecf.sp.ect;value[String]=ecf.generic.server
name=ecf.sp.cid;value[bytes]=[111,114,103,46,101,99,108,105,112,115,101,46,101,99,102,46,99,111,114,101,46,105,100,101,110,116,105,116,121,46,83,116,114,105,110,103,73,68,58,101,99,102,116,99,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,55,56,50,47,115,101,114,118,101,114],value[Object]=org.eclipse.ecf.discovery.ServiceProperties$ByteArrayWrapper@5d2412e7
osgiServiceProperties
osgiServiceInterfaces=org.eclipse.ecf.examples.remoteservices.hello.IHello
endpointSupportedConfigs=ecf.generic.server
endpointContainerID=org.eclipse.ecf.core.identity.StringID:ecftcp://localhost:5782/server
endpointContainerIDNamespace=org.eclipse.ecf.core.identity.StringID
remoteServiceID=0
remoteServiceIDNamespace=ecf.namespace.generic.remoteservice
]
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.server.ZooKeeperServer).
log4j:WARN Please initialize the log4j system properly.
2001
Thanks and Regards
Abhisek
On Wed, May 19, 2010 at 7:47 PM, Scott Lewis
<slewis@xxxxxxxxxxxxx> wrote:
Hi Folks,
Congratulations to Ahmed, Wim and others are in order for this contribution.
Addition of Zookeeper-based discovery...all the way through to the working OSGi remote services hello examples...represents a great achievement. It shows the power of ECF's modular approach to remote services...the ability to mix and match discovery protocols (SLP, Zeroconf, Zookeeper, dns-sd, xml file, etc) with distribution providers (rosgi, ecf generic, jms, rest, soap, etc) to instantly produce an OSGi standards-compliant remote services implementation that matches your specific needs for interoperability, security, performance, etc.
I've done a Helios build using these changes/additions, and it's available for test download/install here:
Thanks!
Scott
Wim Jongman wrote:
Hello All,
Ahmed, Scott and myself have been busy with the zookeeper examples
which have been released to HEAD. Get the o.e..hello.host and
o.e..hello.consumer bundles along with the ..zookeeper bundles. Open
the zookeeper,generic product files in the products directory of both
example bundles and select 'Run as Eclipse Application' on both
product files.
You will see that the service gets published on the host VM and
discovered in the consumer VM. After discovery on the consumer VM the
service gets activated with both direct/blocking and async/not
blocking service calls. Which is Uber Cool (if you like these kind of
things :).
We also have configurations for r_osgi, see the appropriate product
configurations and start them.
We have restyled the examples for clarity and we have added a command
provider. This command provider supplies the "hello" command to the
equinox console:
hello stop: will stop the host bundle if not already stopped.
hello start: will start the host bundle if not already started.
You will see publication and discovery events flying by in the console.
The org.apache.zookeeper bundle contains a log4j config in the conf
directory. It is switched off by default. Replace the line that reads
log4j.appender.CONSOLE.Threshold=ERROR by
log4j.appender.CONSOLE.Threshold=INFO to start logging after
restarting both product.
We will be starting a blog series about the capabilities off the
zookeeper discovery provider and be updating the example wiki page as
well.
Please try the examples and report any problems.
Best regards
Wim Jongman
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev
H
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev