You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2012/09/19 15:32:56 UTC

svn commit: r1387588 - in /camel/branches/camel-2.10.x: ./ components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java

Author: ningjiang
Date: Wed Sep 19 13:32:55 2012
New Revision: 1387588

URL: http://svn.apache.org/viewvc?rev=1387588&view=rev
Log:
CAMEL-5627 the camel-zookeeper component should not share the configuration object

Modified:
    camel/branches/camel-2.10.x/   (props changed)
    camel/branches/camel-2.10.x/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
  Merged /camel/trunk:r1387545

Propchange: camel/branches/camel-2.10.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.10.x/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.10.x/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java?rev=1387588&r1=1387587&r2=1387588&view=diff
==============================================================================
--- camel/branches/camel-2.10.x/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java (original)
+++ camel/branches/camel-2.10.x/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/ZooKeeperComponent.java Wed Sep 19 13:32:55 2012
@@ -49,11 +49,11 @@ public class ZooKeeperComponent extends 
             throw new CamelException("No Camel context has been provided to this zookeeper component");
         }
 
-        ZooKeeperConfiguration config = getConfiguration();
+        ZooKeeperConfiguration config = getConfiguration().copy();
         extractConfigFromUri(uri, config);
         setProperties(config, parameters);
 
-        return new ZooKeeperEndpoint(uri, this, config.copy());
+        return new ZooKeeperEndpoint(uri, this, config);
     }
 
     private void extractConfigFromUri(String remaining, ZooKeeperConfiguration config) throws URISyntaxException {