karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf-cellar git commit: Fix resource service property on the synchronizer
Date Fri, 18 Sep 2015 04:10:05 GMT
Repository: karaf-cellar
Updated Branches:
  refs/heads/master 77b8daec7 -> 227badab2


Fix resource service property on the synchronizer


Project: http://git-wip-us.apache.org/repos/asf/karaf-cellar/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-cellar/commit/227badab
Tree: http://git-wip-us.apache.org/repos/asf/karaf-cellar/tree/227badab
Diff: http://git-wip-us.apache.org/repos/asf/karaf-cellar/diff/227badab

Branch: refs/heads/master
Commit: 227badab29bed1b1dcbece268cfff1c594b92e18
Parents: 77b8dae
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Fri Sep 18 06:09:43 2015 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Fri Sep 18 06:09:43 2015 +0200

----------------------------------------------------------------------
 .../karaf/cellar/http/balancer/internal/osgi/Activator.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/227badab/http/balancer/src/main/java/org/apache/karaf/cellar/http/balancer/internal/osgi/Activator.java
----------------------------------------------------------------------
diff --git a/http/balancer/src/main/java/org/apache/karaf/cellar/http/balancer/internal/osgi/Activator.java
b/http/balancer/src/main/java/org/apache/karaf/cellar/http/balancer/internal/osgi/Activator.java
index 3ae2ee5..219e284 100644
--- a/http/balancer/src/main/java/org/apache/karaf/cellar/http/balancer/internal/osgi/Activator.java
+++ b/http/balancer/src/main/java/org/apache/karaf/cellar/http/balancer/internal/osgi/Activator.java
@@ -95,7 +95,9 @@ public class Activator extends BaseActivator {
         synchronizer.setGroupManager(groupManager);
         synchronizer.setBundleContext(bundleContext);
         synchronizer.init();
-        register(Synchronizer.class, synchronizer);
+        props = new Hashtable();
+        props.put("resource", "balanced.servlet");
+        register(Synchronizer.class, synchronizer, props);
 
         LOGGER.debug("CELLAR HTTP BALANCER: starting local servlet listener");
         LocalServletListener servletListener = new LocalServletListener();
@@ -103,9 +105,7 @@ public class Activator extends BaseActivator {
         servletListener.setGroupManager(groupManager);
         servletListener.setConfigurationAdmin(configurationAdmin);
         servletListener.setEventProducer(eventProducer);
-        props = new Hashtable();
-        props.put("resource", "balanced.servlet");
-        register(ServletListener.class, servletListener, props);
+        register(ServletListener.class, servletListener);
     }
 
     @Override


Mime
View raw message