Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2B4DC200B79 for ; Tue, 23 Aug 2016 19:41:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A0A7160A81; Tue, 23 Aug 2016 17:41:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9EC40160ABF for ; Tue, 23 Aug 2016 19:41:21 +0200 (CEST) Received: (qmail 78677 invoked by uid 500); 23 Aug 2016 17:41:20 -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 78625 invoked by uid 99); 23 Aug 2016 17:41:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2016 17:41:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 83FAA2C0153 for ; Tue, 23 Aug 2016 17:41:20 +0000 (UTC) Date: Tue, 23 Aug 2016 17:41:20 +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 archived-at: Tue, 23 Aug 2016 17:41:22 -0000 [ 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: (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=C3=A9 > Assignee: Jean-Baptiste Onofr=C3=A9 > 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 =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)