Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5662B19415 for ; Thu, 31 Mar 2016 16:46:26 +0000 (UTC) Received: (qmail 71149 invoked by uid 500); 31 Mar 2016 16:46:26 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 71089 invoked by uid 500); 31 Mar 2016 16:46:26 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 71019 invoked by uid 99); 31 Mar 2016 16:46:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2016 16:46:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F22D02C14FB for ; Thu, 31 Mar 2016 16:46:25 +0000 (UTC) Date: Thu, 31 Mar 2016 16:46:25 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-3952) Be able to provide full ObjectName to registerMBean() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3952?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofr=C3=A9 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=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > 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 =3D new Hashtable(); > props.put("jmx.objectname", "org.apache.karaf.cellar:type=3Dcore,= name=3D" + System.getProperty("karaf.name")); > coreMBeanRegistration =3D bundleContext.registerService(getInterf= aceNames(cellarMBean), cellarMBean, props); > {code} > To simplify the writing, it would be great that the registerMBean() metho= d accept the complete ObjectName (instead of only type as currently). -- This message was sent by Atlassian JIRA (v6.3.4#6332)