Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 98147 invoked from network); 14 Mar 2005 21:32:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Mar 2005 21:32:23 -0000 Received: (qmail 8040 invoked by uid 500); 14 Mar 2005 21:32:22 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 7162 invoked by uid 500); 14 Mar 2005 21:32:20 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 7148 invoked by uid 99); 14 Mar 2005 21:32:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from umail.upstate.com (HELO umail.upstate.com) (205.160.101.144) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 14 Mar 2005 13:32:18 -0800 Received: from sagunto ([172.21.131.9]) by umail.upstate.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 14 Mar 2005 16:33:12 -0500 From: "Eric Pugh" To: "'Jakarta Commons Users List'" Subject: RE: Commons Configuration and Log4J Date: Mon, 14 Mar 2005 21:32:19 -0000 Message-ID: <013501c528dd$4d6909a0$098315ac@sagunto> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <4235FB79.3030700@logixpartners.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-OriginalArrivalTime: 14 Mar 2005 21:33:12.0140 (UTC) FILETIME=[6C6578C0:01C528DD] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Humm.. What are you trying to do, just cut down on the number of xml files you need to deal with? If that is your objective, I've used the approach of a container tool like Avalon to parse the config file and hand the correct xml to commons-configuration and to log4j. Well, not those two, but a similar pair. Theorectically you can load any xml file as a commons config file, you may need to write your own digester rules or just subclass one of the existing Configuratoin implmentation. That would have each project just using the same file as the source. Or, alternatively, write a commons configuration loader for log4j. ERic -----Original Message----- From: Charles Griswold [mailto:cgriswold@logixpartners.com] Sent: Monday, March 14, 2005 9:01 PM To: Jakarta Commons Users List Subject: Commons Configuration and Log4J I am using the xml form for commons configuration as well as logi4j configuration. Is it possible to work off of a single xml configuration file for both? Has anyone done such a thing and if so how? All advice appreciated. Thanks in advance. Charles Griswold --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org