You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2016/08/23 17:41:20 UTC

[jira] [Updated] (KARAF-3952) Be able to provide full ObjectName to registerMBean()

     [ 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:     (was: 4.0.6)
                   4.0.7

> 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.7
>
>
> 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)