You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Alan Cabrera (JIRA)" <ji...@apache.org> on 2009/11/19 16:17:39 UTC

[jira] Created: (ZOOKEEPER-584) ZooKeeper service instance should be registered in the OSGi registry

ZooKeeper service instance should be registered in the OSGi registry
--------------------------------------------------------------------

                 Key: ZOOKEEPER-584
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-584
             Project: Zookeeper
          Issue Type: New Feature
          Components: server
            Reporter: Alan Cabrera


When Zookeeper is booted in an OSGi framework by {{ManagedService}} it would be quite handy to have {{ManagedService}} register a management interface for that ZooKeeper instance into the OSGi service registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-584) ZooKeeper service instance should be registered in the OSGi registry

Posted by "David Bosschaert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783633#action_12783633 ] 

David Bosschaert commented on ZOOKEEPER-584:
--------------------------------------------

For the moment I put the bundle that runs the zookeeper server in the CXF-DOSGi codebase (because I'm using the functionality there).
It can configure (through the OSGi Configuration Admin Service) and run Zookeeper Server. 
Reconfiguration is also supported (just change the configuration information on the PID: org.apache.cxf.dosgi.discovery.zookeeper.server and the reconfiguration is applied by shutting down and starting up the zookeeper server in-process.

You can find it here: http://svn.apache.org/repos/asf/cxf/dosgi/trunk/discovery/distributed/zookeeper-server

Let me know when you think the zookeeper codebase is ready for this. It works for me, but I understand that the general feeling is that some changes need to be made to the zookeeper core before something like this can be accepted.
I'd be happy to contribute this to zookeeper if you like to have it.

> ZooKeeper service instance should be registered in the OSGi registry
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-584
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-584
>             Project: Zookeeper
>          Issue Type: New Feature
>          Components: server
>            Reporter: Alan Cabrera
>
> When Zookeeper is booted in an OSGi framework by {{ManagedService}} it would be quite handy to have {{ManagedService}} register a management interface for that ZooKeeper instance into the OSGi service registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-584) ZooKeeper service instance should be registered in the OSGi registry

Posted by "David Bosschaert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782905#action_12782905 ] 

David Bosschaert commented on ZOOKEEPER-584:
--------------------------------------------

Yeah, what you'd really want is an OSGi bundle that launches the Zookeeper Service from within the OSGi Framework. It should be configurable through the OSGi Configuration Admin Service and support changes in configuration after the server was launched.

An initial attempt to provide some of this functionality has already been done in the context of ZOOKEEPER-425. Look at the Activator.java and ManagedService.java of [zk_patch3.patch|https://issues.apache.org/jira/secure/attachment/12425484/zk_patch3.patch] in that bug. 

> ZooKeeper service instance should be registered in the OSGi registry
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-584
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-584
>             Project: Zookeeper
>          Issue Type: New Feature
>          Components: server
>            Reporter: Alan Cabrera
>
> When Zookeeper is booted in an OSGi framework by {{ManagedService}} it would be quite handy to have {{ManagedService}} register a management interface for that ZooKeeper instance into the OSGi service registry.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.