[ 
https://issues.apache.org/jira/browse/DOSGI-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schneider resolved DOSGI-70.
--------------------------------------

    Resolution: Fixed

I have not exactly applied the patch from Julien but used the idea of reacting 
in the expired event. I also removed the code that waits for the connect with a 
timeout. Instead I use the syncconnect event to fully start the discovery. Both 
seem to work really well.

1404989 02.11.2012 16:02:01, by cschneider
DOSGI-138 DOSGI-123 DOSGI-70 Refactoring of discovery, added reconnect and 
republishing after connection loss to zookeeper
M 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/Activator.java
D 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/DataMonitorListener.java
D 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/EndpointListenerFactory.java
D 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/EndpointListenerImpl.java
M 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/EndpointListenerTrackerCustomizer.java
D 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/InterfaceDataMonitorListenerImpl.java
M 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/InterfaceMonitor.java
A 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/InterfaceMonitorManager.java
A 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/PublishingEndpointListener.java
A 
/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/PublishingEndpointListenerFactory.java
And 9 more 
                
> Reconnect automatically to Zookeeper after a connection loss / timeout
> ----------------------------------------------------------------------
>
>                 Key: DOSGI-70
>                 URL: https://issues.apache.org/jira/browse/DOSGI-70
>             Project: CXF Distributed OSGi
>          Issue Type: Improvement
>          Components: Discovery
>    Affects Versions: 1.0, 1.1, 1.2
>            Reporter: Julien Vey
>            Assignee: Christian Schneider
>             Fix For: 1.4
>
>         Attachments: cxf-dosgi-ri-discovery-distributed.patch
>
>
> When a remote service is disconnected from the ZooKeeper Server and when the 
> session is expired, it should be able to try to reconnect automatically.
> Here the discussion on the mailing list : 
> http://old.nabble.com/DOSGI-Discovery-with-Zookeeper%2C-re-establish-session-after-a-timeout-tt28305408.html
>  
> Some links to zookeeper about this matter
> http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A3
> http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to