|
Page Edited :
CXF :
DOSGi Discovery
DOSGi Discovery has been edited by David Bosschaert (Jun 10, 2009). Content:This page outlines setting up the Discovery implementation that is part of CXF Distributed OSGi. @@@ This page is work in progress IntroductionInstalling and run the ZooKeeper serverRead the ZooKeeper Getting Started page: http://hadoop.apache.org/zookeeper/docs/current/zookeeperStarted.html The ZooKeeper distribution doesn't contain any Windows scripts yet. If you're on Windows you can download scripts to start the ZooKeeper server and the client program from here Once you have ZooKeeper installed (the current version used is 3.1.1), run its server: $ bin/zkServer ... log messages ... 2009-06-10 13:23:27,288 - INFO [main:filetxnsnap...@198] - Snapshotting: 0 The ZooKeeper server is now ready.
For more information on the ZooKeeper configuration variables see the ZooKeeper administration guide: http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html An easy way to set the configuration, it by placing a file called org.apache.cxf.dosgi.discovery.zookeeper.cfg in the load directory created by the FileInstall bundle with the following content: zookeeper.host = localhost As soon as you set the configuration, the Discovery will connect to the ZooKeeper server. You will see a few log messages on the ZooKeeper server console to reflect this. You can always check the configuration of the ZooKeeper client by looking at the ManagedService registered by the CXF/Discovery bundle: -> services 6 Distributed OSGi Zookeeper-Based Discovery Single-Bundle Distribution (6) provides: ----------------------------------------------------------------------------------- ... other services ... ---- objectClass = org.osgi.service.cm.ManagedService felix.fileinstall.filename = org.apache.cxf.dosgi.discovery.zookeeper.cfg service.id = 38 service.pid = org.apache.cxf.dosgi.discovery.zookeeper zookeeper.host = localhost zookeeper.port = 2181 zookeeper.timeout = 3000 |
Unsubscribe or edit your notifications preferences
