Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 87400 invoked from network); 17 Mar 2006 18:20:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 18:20:22 -0000 Received: (qmail 96309 invoked by uid 500); 17 Mar 2006 18:20:20 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 96259 invoked by uid 500); 17 Mar 2006 18:20:20 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 96248 invoked by uid 99); 17 Mar 2006 18:20:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 10:20:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [199.237.51.194] (HELO green.rootmode.com) (199.237.51.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 10:20:19 -0800 X-ClientAddr: 68.171.62.46 Received: from [192.168.15.100] (68-171-62-46.vnnyca.adelphia.net [68.171.62.46]) by green.rootmode.com (8.12.10/8.12.10) with ESMTP id k2HIIsB6000873 for ; Fri, 17 Mar 2006 13:18:54 -0500 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <8E3F426D-2723-4633-B34E-E3AA736161EF@iq80.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: Supporting XBean services within the GBean kernel Date: Fri, 17 Mar 2006 10:19:00 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.746.2) X-RootMode-MailScanner-Information: Please contact the ISP for more information X-RootMode-MailScanner: Found to be clean X-MailScanner-From: dain@iq80.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N James, you always ask the hardest questions :) On Mar 17, 2006, at 1:00 AM, James Strachan wrote: > I fell for the charms of XBean a long time ago; both ActiveMQ and > ServiceMix have been using it as its primary configuration > mechanism for some time. I recently XBean-ified Jetty too which > took about an hour and can currently configure most of Jetty. > Incidentally there's currently a real simple file system based > deployer that can walk the file system building up classpath trees > and booting up any XBean or Spring applications it finds. e.g. the > following test repository boots up ActiveMQ fully configured via > XBean. (This deployer could use some work to be able to deal with > service and classpath dependencies, to allow graphs rather than > just trees to be used) > http://svn.apache.org/repos/asf/geronimo/xbean/trunk/xbean-server/ > src/test/repository/ > > The GBean integration of ActiveMQ has always been pretty simple and > limited; I"ve always wanted full rich integration where every > single transport connector, network connector, journal > configuration, thread pool, queue, topic, connection & subscription > are all richly available to the GBean kernel & management subsystem > etc. We kinda have that today with a combination of XBean and JMX; > but it doesn't really integrate yet with the GBean kernel. > > So I'm wondering if we can put together some kind of GBean facade > to XBean; so the current kernel sees the XBean world as just a > bunch of GBeans and anything which can deploy in XBean (which > includes pretty much every Spring application on the planet) > suddenly becomes available nicely into the GBean world. The short answer is not without a lot of work and re-architecting of the Geronimo kernel. My rough plan is to not do a full XBean integration until Geronimo 2.0, but in the 1.x tree I would like to continue to simplify and add more features from xbean. Specifically, I would like to integrate the xbean-reflect package for building attributes into Geronimo. This will allow us to build arbitrarily complex attribute values which can contain references to other GBeans. I have already added an optional flag to turn of proxing of references between GBeans and hope to have that always on in Geronimo 1.2. I doubt we will be able to add xbean-spring to Geronimo until 2.0. > Something like a GBean which boots up the XBean kernel and exposes > all the registered services as GBeans would do the trick. It > shouldn't be too hard right? Unfortunately, it just isn't the way Geronimo works. > A second question is; what to do about JMX. In ActiveMQ we've > written a bunch of MBeans so whether you use ActiveMQ in J2SE or > J2EE you can point JConsole at the JVM and see all the various > stats, queue depths, buffer sizes and so forth. Some of these > things are created at deployment time; though most of them come and > go as clients connect to the broker and the brokers own runtime > state changes e.g. deach connection & subscription has an MBean; > clients can create new destinations at runtime etc. How would it be > best to integrate those into the GBean infrastructure - or would it > be best to just leave them in JMX and let the management portlets > just use JMX to access them. I'm not sure on this one. -dain