Author: davidb
Date: Wed Dec  9 12:16:19 2009
New Revision: 888782

URL: http://svn.apache.org/viewvc?rev=888782&view=rev
Log:
Fix for race condition in Discovery activator.

Modified:
    
cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/Activator.java

Modified: 
cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/Activator.java
URL: 
http://svn.apache.org/viewvc/cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/Activator.java?rev=888782&r1=888781&r2=888782&view=diff
==============================================================================
--- 
cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/Activator.java
 (original)
+++ 
cxf/dosgi/trunk/discovery/distributed/cxf-discovery/src/main/java/org/apache/cxf/dosgi/discovery/zookeeper/Activator.java
 Wed Dec  9 12:16:19 2009
@@ -21,7 +21,7 @@
     private DiscoveryDriver driver;
     ServiceRegistration cmReg;
 
-    public void start(BundleContext bc) throws Exception {
+    public synchronized void start(BundleContext bc) throws Exception {
         bundleContext = bc;        
         cmReg = bc.registerService(ManagedService.class.getName(), this, 
getCMDefaults());
     }
@@ -42,7 +42,7 @@
         }
     }
 
-    public void updated(Dictionary configuration) throws 
ConfigurationException {
+    public synchronized void updated(Dictionary configuration) throws 
ConfigurationException {
         if (configuration == null) {
             return;
         }


Reply via email to