You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/08/12 23:47:51 UTC

[2/2] camel git commit: fix using MasterComponent

fix using MasterComponent


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/60a6bf95
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/60a6bf95
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/60a6bf95

Branch: refs/heads/camel-2.19.x
Commit: 60a6bf951324302eea1c401639d7e89663a48dc5
Parents: a32d231
Author: itarius <ya...@gmail.ru>
Authored: Fri Aug 11 22:20:09 2017 +0300
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Aug 13 01:47:19 2017 +0200

----------------------------------------------------------------------
 .../apache/camel/component/zookeepermaster/MasterConsumer.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/60a6bf95/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
index dcd5229..ab0d5c6 100644
--- a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
+++ b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
@@ -90,6 +90,10 @@ public class MasterConsumer extends DefaultConsumer {
         String path = endpoint.getComponent().getCamelClusterPath(endpoint.getGroupName());
         this.groupListener = new ZookeeperGroupListenerSupport(path, endpoint, onLockOwned(), onDisconnected());
         this.groupListener.setCamelContext(endpoint.getCamelContext());
+        this.groupListener.setZooKeeperUrl(endpoint.getComponent().getZooKeeperUrl());
+        this.groupListener.setZooKeeperPassword(endpoint.getComponent().getZooKeeperPassword());
+        this.groupListener.setCurator(endpoint.getComponent().getCurator());
+        this.groupListener.setMaximumConnectionTimeout(endpoint.getComponent().getMaximumConnectionTimeout());
         ServiceHelper.startService(groupListener);
 
         LOG.info("Attempting to become master for endpoint: " + endpoint + " in " + endpoint.getCamelContext() + " with singletonID: " + endpoint.getGroupName());