[ https://issues.apache.org/jira/browse/KARAF-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved KARAF-3952. ------------------------------------ Resolution: Fixed Assignee: Guillaume Nodet (was: Jean-Baptiste Onofré) Fix Version/s: (was: 4.0.8) > Be able to provide full ObjectName to registerMBean() > ----------------------------------------------------- > > Key: KARAF-3952 > URL: https://issues.apache.org/jira/browse/KARAF-3952 > Project: Karaf > Issue Type: Improvement > Components: karaf-util > Affects Versions: 4.0.1 > Reporter: Jean-Baptiste Onofré > Assignee: Guillaume Nodet > Fix For: 4.1.0 > > > Karaf util provides the convenient registerMBean() method. However, when you > want to provide a full ObjectName, the workaround is to use: > {code} > 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); > {code} > To simplify the writing, it would be great that the registerMBean() method > accept the complete ObjectName (instead of only type as currently). -- This message was sent by Atlassian JIRA (v6.3.4#6332)