Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 96584 invoked from network); 12 Feb 2007 19:54:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2007 19:54:13 -0000 Received: (qmail 52984 invoked by uid 500); 12 Feb 2007 19:54:20 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 52959 invoked by uid 500); 12 Feb 2007 19:54:20 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 52950 invoked by uid 99); 12 Feb 2007 19:54:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 11:54:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of daniel.kulp@iona.com designates 65.223.216.181 as permitted sender) Received: from [65.223.216.181] (HELO amereast-smg1.iona.com) (65.223.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 11:54:10 -0800 Received: from amer-ems1.IONAGLOBAL.COM ([10.65.6.25]) by amereast-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id l1CJreMk022077 for ; Mon, 12 Feb 2007 14:53:40 -0500 (EST) Received: from [10.65.4.111] ([10.65.4.111]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Feb 2007 14:53:49 -0500 From: Daniel Kulp Organization: IONA To: cxf-dev@incubator.apache.org Subject: Re: Bus ID Date: Mon, 12 Feb 2007 14:53:48 -0500 User-Agent: KMail/1.9.5 References: <05F5FDC16A447442B12B21A432878AC505189D@amer-ems1.IONAGLOBAL.COM> <7b774c950702120819q36028138pf50fbf14645f5a70@mail.gmail.com> In-Reply-To: <7b774c950702120819q36028138pf50fbf14645f5a70@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702121453.48651.daniel.kulp@iona.com> X-OriginalArrivalTime: 12 Feb 2007 19:53:49.0117 (UTC) FILETIME=[83515ED0:01C74EDF] X-Virus-Checked: Checked by ClamAV on apache.org On Monday 12 February 2007 11:19, Dan Diephouse wrote: > On 2/12/07, Soltysik, Seumas wrote: > > For the purposes of the JMX infrastructure I would like to provide the > > user with a convenient way of viewing all MBeans associated with a > > particular Bus. Incorporating the BusID into the ObjectName of an MBean > > is a user friendly way of communicating to the user the relationship > > between the MBean and its associated Bus. However, it does not appear > > that there is any guarantee(within a particular classloader) of the > > uniqueness of the BusID value. If this is true then I am confused as to > > the value of the BusID. It seems to me that CXF should enforce ID > > uniqueness or get rid of the BusID entirely. > > In complete agreement on your statement. > > I don't really understand the point of the Bus ID personally. So I would be > +1 to getting rid of it. However if its deemed useful for the JMX scenario > that you outline, thats fine too. At one point, the Bus ID was used in the config files for configuring bus level things like the workqueue and bus level interceptors. With the new config stuff, I'm not sure if that's true or not anymore. If not, how would someone configure those things? Basically, if I have 5 Bus's in my application, how would I configure each one uniquely? Instead of the default being "null", I would think it might be a good idea to keep a static counter someplace and each time a bus is created with no ID, just use "CXF-Bus-#" or similar so they would each be relatively unique. It wouldn't guarantee uniqueness as someone could create two or more busses with the same ID, but in the default case of not specifying it, they'd be unique. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 daniel.kulp@iona.com