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: [KARAF-3717] CellarBundleMBean now uses the bundle symbolicname in the install() operation
Date Tue, 05 May 2015 14:41:07 GMT
Repository: karaf-cellar
Updated Branches:
  refs/heads/cellar-3.0.x 6e67f1a31 -> 62b057525


[KARAF-3717] CellarBundleMBean now uses the bundle symbolicname in the install() operation


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

Branch: refs/heads/cellar-3.0.x
Commit: 62b05752578574b8192fd3e9b476c7332ea2aa33
Parents: 6e67f1a
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Tue May 5 15:43:19 2015 +0200
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Tue May 5 15:45:46 2015 +0200

----------------------------------------------------------------------
 .../bundle/management/internal/CellarBundleMBeanImpl.java       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/62b05752/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
----------------------------------------------------------------------
diff --git a/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
b/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
index 3c2d9fe..74ecfda 100644
--- a/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
+++ b/bundle/src/main/java/org/apache/karaf/cellar/bundle/management/internal/CellarBundleMBeanImpl.java
@@ -153,7 +153,7 @@ public class CellarBundleMBeanImpl extends StandardMBean implements CellarBundle
             } else {
                 state.setStatus(BundleEvent.INSTALLED);
             }
-            clusterBundles.put(name + "/" + version, state);
+            clusterBundles.put(symbolicName + "/" + version, state);
         } finally {
             Thread.currentThread().setContextClassLoader(originalClassLoader);
         }
@@ -161,12 +161,11 @@ public class CellarBundleMBeanImpl extends StandardMBean implements
CellarBundle
         // broadcast the event
         ClusterBundleEvent event = new ClusterBundleEvent(name, version, location, BundleEvent.INSTALLED);
         event.setSourceGroup(group);
-        eventProducer.produce(event);
         if (start) {
             event = new ClusterBundleEvent(name, version, location, BundleEvent.STARTED);
             event.setSourceGroup(group);
-            eventProducer.produce(event);
         }
+        eventProducer.produce(event);
     }
 
     @Override


Mime
View raw message