Return-Path: Delivered-To: apmail-incubator-geronimo-dev-archive@incubator.apache.org Received: (qmail 37921 invoked by uid 500); 12 Aug 2003 11:34:48 -0000 Mailing-List: contact geronimo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: geronimo-dev@incubator.apache.org Delivered-To: mailing list geronimo-dev@incubator.apache.org Received: (qmail 37906 invoked from network); 12 Aug 2003 11:34:48 -0000 Received: from dsl-217-155-97-61.zen.co.uk (217.155.97.61) by daedalus.apache.org with SMTP; 12 Aug 2003 11:34:48 -0000 Received: from apple.air.bandlem.com ([10.0.1.20] helo=ioshq.com) by dsl-217-155-97-61.zen.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 19mXQN-0000Th-00 for ; Tue, 12 Aug 2003 12:34:47 +0100 Date: Tue, 12 Aug 2003 12:34:45 +0100 Subject: Re: [services] getting service developers started - the initial component model Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Alex Blewitt To: geronimo-dev@incubator.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: <000a01c360c3$f13f69e0$47c2f1a7@vis.verizon.com> Message-Id: X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > My understanding of the JMX/MBeans idea from SUN is so that it is > possible > to create MBeans (Management Beans) as part of a J2EE application to > support > administration, management and monitoring of the J2EE application. > This is a > very powerful idea, which ideally will be supported by Geronimo. Absolutely. I have always been for there being a JMX /interface/ to Geronimo, but not as an /implementation/ of the kernel. > The use of a JMX/MBeans model for Kernel framework shouldn't > jeopardize the > above. In fact I assumed that the discussion of the MBeans as a service > component model was actually MBeans-like, i.e. basing the component > model on > the MBeans design. (We can structure the Geronimo kernel like JMX > without > actually making the kernel a JMX implementation, so as to incorporate > into > the kernel the ability for J2EE application developers to create and > install > actual MBeans.) Because of the above, this is what makes sense for this > approach. I think there should be a distinction between the kernel and a JMX/MBean container -- they're not necessarily the same. Granted, that it may be desirable for MBeans to be incorporated in at a later stage, but by starting off with the doctrine 'everything is an MBean' then it's very difficult to be innovative and come up with ideas outside of the JMX spec. For example: public abstract Service { public abstract String getName(); public abstract void start(); public abstract void stop(); public MBean getMBeanInterface() { return new ServiceMBeanInterfaceAdapter(this); } } public ServiceMBean implements GenericMBean { private Service instance; public ServiceMBean(Service instance) { this.instance = instance; } public void start() { instance.start(); } public void stop() { instance.stop(); } } That way, you can create subcomponents of Service that are entirely independent of JMX, whilst still providing a JMX interface to the same. Indeed, subclasses can provide their own specific JMXBean implementations if the default is not desirable. Additionally, if there is a move from using MBeans to another component architecture, then this will allow the same representation to be used. Alex.