Hi Michele,

On 29 April 2011 09:28, Michele Girolami <[email protected]> wrote:
> Hi David,
>
> thank you for your answer! Actually my need is to let the DOSGi clients not
> be aware of a specific Zookeeper URL, I'd like to let the clients discover
> at least one ZooKeeper URL and then looking for the required services. I
> haven't found such feature in the ZooKeeper documentation...maybe you have
> ideas...

Quite possibly they don't have this feature, you could double-check on
the zookeeper mailing list.

Even if ZK doesn't support it you could quite easily build something
like this yourself on top of zookeeper and CXF-DOSGi with the help
some broadcast library.

> Could you please clarify a little bit more  the following point?
>
> David Bosschaert wrote:
>>
>> ...
>> Possibly a generally better approach would be to use a
>> management/orchestration system which knows where in your system the
>> zookeeper servers are. Then you use that information to configure your
>> DOSGi nodes.

I know I was a little vague but there are many ways to solve this
problem. I think there are actually products out there that can do
this: control entities (e.g. in the cloud) and shift configuration
information around that relate to the build-up of the system. Such
information could be the zookeeper server urls.

So my point is that there is likely an entity that knows where the
zookeeper servers are. That entity could push that configuration into
the CXF-DOSGi clients.

It's actually one of the things that we're going to look into in the
OSGi Cloud Working group [1].

> One extra question... I ask you if you know if CXF's DOSGi project will be
> enriched with other discovery protocol implementations e.g. SLP in similar
> way to the ECF project.

There are no plans at this stage to enhance CXF-DOSGi with other
protocols, but the nice thing about the OSGi Remote Service Admin spec
[2] is that is allows mix-n-match of components. So it should be
possible to use the discovery implementation of ECF with CXF-DOSGi
instead of its zookeeper based one. It should be possible to add the
ECF SLP discovery bundles to the CXF-DOSGi system and since the spec
mandates that they all work through the
org.osgi.service.remoteserviceadmin.EndpointListener Service they
should interoperate! I haven't tried this but it should work!

Hope this helps,

David

[1] http://www.osgi.org/Design/Cloud
[2] Chapter 122 in the OSGi Enterprise spec 4.2
http://www.osgi.org/Download/Release4V42

Reply via email to