[ 
https://issues.apache.org/jira/browse/KARAF-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15592625#comment-15592625
 ] 

ASF subversion and git services commented on KARAF-3952:
--------------------------------------------------------

Commit 54b57b7017ba0a45a1041db18b3677c0da5770e5 in karaf's branch 
refs/heads/master from [~gnt]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=54b57b7 ]

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

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