Skip to content

Commit

Permalink
[ARIES-985] Improve robustness of JMX Blueprint Core bundle
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1422908 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
gnodet committed Dec 17, 2012
1 parent 18a59b5 commit e9a1d17
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -85,8 +85,7 @@ public Object addingService(ServiceReference servicereference) {
public void removedService(ServiceReference servicereference, Object obj) { public void removedService(ServiceReference servicereference, Object obj) {
try { try {
LOGGER.debug("Removing MBeanServer: {}", servicereference); LOGGER.debug("Removing MBeanServer: {}", servicereference);
final MBeanServer mbeanServer = (MBeanServer) bundleContext.getService(servicereference); Activator.this.deregisterMBeans((MBeanServer) obj);
Activator.this.deregisterMBeans(mbeanServer);
} catch (Throwable e) { } catch (Throwable e) {
LOGGER.debug("uncaught exception in removedService", e); LOGGER.debug("uncaught exception in removedService", e);
} }
Expand Down

0 comments on commit e9a1d17

Please sign in to comment.