Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.3
-
None
-
None
Description
The ServiceTracker tracking MBean services currently only tracks services whose service interface is accessible to the JMX Whiteboard bundle. This is wrong since the Whiteboard bundle does not really care for the actual implemented service (unless the service interface happens to be DynamicMBean (or an JMX defined extension thereof)).
The patch is extremely simple:
Index: Activator.java
===================================================================
— Activator.java (Revision 1142902)
+++ Activator.java (Arbeitskopie)
@@ -42,7 +42,7 @@
mbeanServerTracker.open();
mbeanTracker = new MBeanTracker(context);
- mbeanTracker.open();
+ mbeanTracker.open(true);
}
public void stop(BundleContext context) throws Exception {