Details
Description
Karaf util provides the convenient registerMBean() method. However, when you want to provide a full ObjectName, the workaround is to use:
Hashtable props = new Hashtable(); props.put("jmx.objectname", "org.apache.karaf.cellar:type=core,name=" + System.getProperty("karaf.name")); coreMBeanRegistration = bundleContext.registerService(getInterfaceNames(cellarMBean), cellarMBean, props);
To simplify the writing, it would be great that the registerMBean() method accept the complete ObjectName (instead of only type as currently).