[ https://issues.apache.org/jira/browse/KARAF-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-3952: ---------------------------------------- Fix Version/s: 4.0.6 4.1.0 > 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: Jean-Baptiste Onofré > Fix For: 4.1.0, 4.0.6 > > > 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)