Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC12A9E9C for ; Fri, 29 Jun 2012 10:43:16 +0000 (UTC) Received: (qmail 65295 invoked by uid 500); 29 Jun 2012 10:43:16 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 65039 invoked by uid 500); 29 Jun 2012 10:43:15 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 65010 invoked by uid 99); 29 Jun 2012 10:43:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 10:43:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elakito@googlemail.com designates 209.85.160.169 as permitted sender) Received: from [209.85.160.169] (HELO mail-gh0-f169.google.com) (209.85.160.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2012 10:43:09 +0000 Received: by ghrr18 with SMTP id r18so3027533ghr.0 for ; Fri, 29 Jun 2012 03:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=TjoalZp0mQIRJMj61hlD1cqKReH7zt/k+Y67r5VHEkc=; b=VX5K3TL+dWaeuDjiViSpvggCJU+wsHePYgHmHK2OxJAunQoblGWgmii79HBQF9tMOc a4c3orgb1nKxTa9KLBwOo0mq4MYYnXxFVzQXBsvT88DZIfCuWmz9nMDxCy+apTOoplU6 JvARxgSWU20rS90YUkG2HzALHQoBJW0B+DDmLgFjGPUdWvEmNFa4ikAQGoF/pSv2E8BY pxHiQwe5NI10qfITHLWW1kJ+qPlVHXkR1O8SQsTqjaRZ97YrWs30JQEVNzbhYBwkJI+H KLDVQ8Snd0RpmkWO3xazxT4Nopvs36XqYJlGmJ6dWNjctWvOJ+peqhCd1CxKKjjjZgPT lA1w== MIME-Version: 1.0 Received: by 10.50.36.227 with SMTP id t3mr686094igj.13.1340966567974; Fri, 29 Jun 2012 03:42:47 -0700 (PDT) Received: by 10.64.24.208 with HTTP; Fri, 29 Jun 2012 03:42:47 -0700 (PDT) In-Reply-To: <4FED6794.2030001@gmail.com> References: <4FED6794.2030001@gmail.com> Date: Fri, 29 Jun 2012 12:42:47 +0200 Message-ID: Subject: Re: [DISCUSSION] Adding the instance.id on the ObjectName From: Aki Yoshida To: dev@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Willem, I am not sure exactly what you mean by this "instance.id". Currently, if no id attribute is set, the bus.id is generated by the bundle id plus cxf and a random number. When the id attribute is set, it is used as the bus.id shown in JMX. I am not sure how this "instance.id" is supposed to be used in your use cas= e. Could you give some examples? Thanks. regards, aki 2012/6/29 Willem Jiang : > Hi, > > As you know CXF management provides a lots MBeans out of box. It works > perfect if it run as stand alone. > If we deploy the CXF endpoints into container like Apache Karaf, we may h= it > the issue that Object is already registered. That is because we don't bui= ld > up unique Object name for JMX to use. And there could be more than one Bu= s > which id is CXF. > > To resolve this issue I suggest we add the "instance.id" on the ObjectNam= e. > As JMX supports to look up the object with a query string, I don't think > this change will effect much on the user CXF management codes. > > Any thoughts? > > -- > Willem > ---------------------------------- > FuseSource > Web: http://www.fusesource.com > Blog: =A0 =A0http://willemjiang.blogspot.com (English) > =A0 =A0 =A0 =A0 http://jnn.javaeye.com (Chinese) > Twitter: willemjiang > Weibo: willemjiang >