Jean-Baptiste Onofré created KARAF-3952:
-------------------------------------------

             Summary: 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é


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)

Reply via email to