DOSGi Discovery has been edited by David Bosschaert (Jun 10, 2009).

(View changes)

Content:

This page outlines setting up the Discovery implementation that is part of CXF Distributed OSGi.

@@@ This page is work in progress

Introduction

Installing and run the ZooKeeper server

Read 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, 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.


You can check that all is well by running the client program:

$ bin/zkCli localhost:2181
--> ls /
Processing ls
[zookeeper]

So besides the zookeeper node, there is nothing in the ZooKeeper virtual filesystem yet.

Installing the CXF Discovery Bundles

The CXF/DOSGi Discovery implementation interacts with the ZooKeeper server. Like with the DOSGi/DSW component, there are two distributions. A single bundle distribution and a multi bundle one.

Single Bundle Distribution

The single bundle distribution assumes that you also have a single-bundle distribution of the DOSGi/DSW installed.

-> install https://repository.apache.org/content/groups/snapshots/org/apache/cxf/dosgi/cxf-dosgi-ri-discovery-singlebundle-distribution/1.1-SNAPSHOT/cxf-dosgi-ri-discovery-singlebundle-distribution-1.1-SNAPSHOT.jar
Bundle ID: 6
-> start 6
... log messages ...
-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.8.0)
[   1] [Active     ] [    1] Apache Felix Shell Service (1.2.0)
[   2] [Active     ] [    1] Apache Felix Shell TUI (1.2.0)
[   3] [Active     ] [    1] Apache Felix Bundle Repository (1.4.0)
[   4] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   5] [Active     ] [    1] Distributed OSGi Distribution Software Single-Bundle Distribution (1.1.0.SNAPSHOT)
[   6] [Active     ] [    1] Distributed OSGi Zookeeper-Based Discovery Single-Bundle Distribution (1.1.0.SNAPSHOT)

The Discovery bundle is now active, but it doesn't do anything yet since it's not yet configured.

Multi Bundle Distribution

TODO

Configuring Discovery

Config Admin / FileInstall

Reply via email to