Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 52442 invoked from network); 24 Feb 2006 08:52:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 08:52:24 -0000 Received: (qmail 44907 invoked by uid 500); 24 Feb 2006 08:52:17 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 44842 invoked by uid 500); 24 Feb 2006 08:52:16 -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 44831 invoked by uid 99); 24 Feb 2006 08:52:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 00:52:16 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.181.65.237] (HELO sun.savoirtech.com) (209.181.65.237) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 24 Feb 2006 00:52:15 -0800 Received: from [206.197.197.15] ([206.197.197.15]) by sun.savoirtech.com (8.13.4/8.13.4) with ESMTP id k1O8ppHv016830 for ; Fri, 24 Feb 2006 01:51:52 -0700 Message-ID: <43FEC91B.6020600@apache.org> Date: Fri, 24 Feb 2006 01:51:39 -0700 From: Jeff Genender Reply-To: jgenender@apache.org Organization: Apache Geronimo User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Removing attributes and refs from the config.xml X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on sun.savoirtech.com X-Virus-Scanned: ClamAV 0.88/1300/Thu Feb 23 08:55:11 2006 on sun.savoirtech.com X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-105.9 required=5.6 tests=ALL_TRUSTED,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.4 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The config.xml allows us to declare new GBeans and override references and attributes of already existing Gbeans. But there is a missing configuration item here, which is the ability to *remove* a reference or attribute value from the configuration. Currently there is no way to do this. Matt Hogstrom and I ran into this when trying to remove a logging reference in one of the GBeans. An example of this is the TomcatValveChain on the TomcatEngine. As it stands, our default implementation installs an AccessLogValve into the TomcatValveChain reference. We wanted to shut off logging to test different performance numbers and found that there was no way to "clear" or remove a reference that was set in the car plan via the config.xml, without rebuilding the car from the source. On further discussion with David J and Dain, we came up with a new xml attribute to place on refs and attribute tags. You would use: empty="true" Example: You want to remove the access logger to improve web container performance, you would declare the following in the config.xml, which would remove the TomcatValveChain from the TomcatEngine: ... ... ... ... You would do the same for attributes that needed to be removed. I have this all coded up and ready to check in, but wanted to get any feedback or issues before I went ahead and did it. Comments? Jeff