Just as a sanity check I ran the REST Greeter demo with discovery (with a CXF-DOSGi build from trunk) and it seems to work fine.
All I did was deploy the following two bundles in a framework with CXF-DOSGi and discovery set up (I used my multi-bundle setup that I still had from this blog article [1], for details see there): cxf-dosgi-ri-samples-greeter-rest-interface-1.4-SNAPSHOT.jar cxf-dosgi-ri-samples-greeter-rest-impl-1.4-SNAPSHOT.jar Then, I inspect the Discovery Server with the zkCli.sh command (from a ZooKeeper 3.4.3 installation): [zk: 127.0.0.1:21810(CONNECTED) 10] ls /osgi/service_registry/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService [192.168.1.7#8080##greeter] [zk: 127.0.0.1:21810(CONNECTED) 11] get /osgi/service_registry/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService/192.168.1.7#8080##greeter <?xml version="1.0" encoding="UTF-8"?> <endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0"> <endpoint-description> <property name="endpoint.service.id" value-type="Long" value="75" /> <property name="endpoint.package.version.org.apache.cxf.dosgi.samples.greeter.rest" value="0.0.0" /> <property name="service.imported.configs"> <array> <value>org.apache.cxf.rs</value> </array> </property> <property name="service.intents"> <array> <value>HTTP</value> </array> </property> <property name="org.apache.cxf.rs.address" value="http://192.168.1.7:8080/greeter" /> <property name="org.apache.cxf.rs.httpservice.context" value="/greeter" /> <property name="objectClass"> <array> <value>org.apache.cxf.dosgi.samples.greeter.rest.GreeterService</value> </array> </property> <property name="endpoint.framework.uuid" value="00dd8aa4-2ad6-0011-1946-8673c0750699" /> <property name="service.imported" value="true" /> <property name="endpoint.id" value="http://192.168.1.7:8080/greeter" /> </endpoint-description> </endpoint-descriptions> ... attribute details omitted ... So there's the information that we're looking for. Sunil, I would suggest that you follow the same steps as I did above to get the demo going. Once that works you should be able to change it to your own needs. Best regards, David [1] http://coderthoughts.blogspot.com/2012/06/cloud-ecosystems-with-osgi.html On 24 July 2012 22:34, Sergey Beryozkin <sberyoz...@gmail.com> wrote: > Hi > > On 24/07/12 21:03, Spandit2 wrote: >> >> I think the DOSGI and ZooKeeeper link has been established . Because when >> I >> do ls in zkcli or >> do getChildrens using zooKeeper API , I get >> [192.168.1.2#8090##appentry#rqastartflow] >> >> Which is the URL of my service . Also in the JBoss server log where I have >> deployed DOSGI , I can see >> >> /12:46:18,352 INFO >> [org.apache.cxf.dosgi.discovery.zookeeper.EndpointListenerImpl] >> (pool-4-thread-4) endpointDescription added: {com.csc.fs.orgname=org1, >> endpoint.framework.uuid=e75c4184-7e62-445e-bbc8-5fd89dde02b8, >> endpoint.id=http://192.168.1.2:8090/appentry/rqastartflow, >> endpoint.package.version.com.csc.fs.BreezWay.AppEntry.intf=0.0.0, >> endpoint.service.id=48, >> objectClass=[com.csc.fs.BreezWay.AppEntry.intf.RQAStartFlow], >> org.apache.cxf.rs.address=http://192.168.1.2:8090/appentry/rqastartflow, >> org.apache.cxf.rs.databinding=aegis, >> org.apache.cxf.rs.httpservice.context=/appentry/rqastartflow, >> service.imported=true, service.imported.configs=[org.apache.cxf.rs], >> service.intents=[HTTP]} >> 12:46:18,353 INFO >> [org.apache.cxf.dosgi.discovery.zookeeper.EndpointListenerImpl] >> (pool-4-thread-4) Creating ZooKeeper node: >> >> /osgi/service_registry/com/csc/fs/BreezWay/AppEntry/intf/RQAStartFlow/192.168.1.2#8090##appentry#rqastartflow/ >> >> So not sure what I am missing. > > > Unfortunately the last time I tried it was when I was working on DOsgi 1.3 > which was awhile back. > I'd like to suggest the following: > - try DOSGI client. Note a CXF RS client code only works with a single > bundle distro - though this is fixed on the trunk (multi-bundle mode is OK > too) - if it works then the info must be available in Zookeeper > - please describe here exactly the way you set up/configure it all, and I'm > sure David can spot something, if anything is not right :-) > I'll then work on updating the wiki > > Cheers, Sergey > >> >> Appreciate your help. >> Sunil >> >> >> >> -- >> View this message in context: >> http://cxf.547215.n5.nabble.com/CXF-DOSGI-EndPoint-description-and-Zookeeper-tp5711529p5711546.html >> Sent from the cxf-user mailing list archive at Nabble.com. > > > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com