Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 1388 invoked from network); 9 Aug 2004 17:51:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Aug 2004 17:51:53 -0000 Received: (qmail 10066 invoked by uid 500); 9 Aug 2004 17:51:38 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 9961 invoked by uid 500); 9 Aug 2004 17:51:37 -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 9724 invoked by uid 99); 9 Aug 2004 17:51:34 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [205.160.101.145] (HELO hqexch01.upstate.com) (205.160.101.145) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 09 Aug 2004 10:51:32 -0700 Received: from IQUITOS (81-202-68-97.user.ono.com [81.202.68.97]) by hqexch01.upstate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PW2QYJ48; Mon, 9 Aug 2004 13:54:41 -0400 Reply-To: From: "Eric Pugh" To: "Jakarta Commons Users List" , Subject: RE: [Configuration] load config files from ddifferent jars Date: Mon, 9 Aug 2004 19:51:31 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: <4117A10B.8010505@numerixtechnology.de> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Humm.. Not sure on this one... It seems like what we should be doing is actually loading them as a resources.. that way trying to find it is left up to whaterver classloader is being used.. so, it shouldn't care what jar it is in.. However, not quite sure how to do that.. patches welcome...! I am sure you can do what you want, it seems not hard, but I'm not sure.. Worse comes to worse, skip the configurationfactory, and just do it yourself.. but it would be nicer to just patch configurationFactory. Eric > -----Original Message----- > From: T E Schmitz [mailto:mailreg@numerixtechnology.de] > Sent: Monday, August 09, 2004 6:07 PM > To: commons-user@jakarta.apache.org > Subject: [Configuration] load config files from ddifferent jars > > > Hello, > > I would like to set up a configuration factory specifying a properties > file which does not reside in the same jar as the composite > configuration .xml file. > > Example: > > > > > > > > It appears that the leading slash is stripped and an attempt is made to > read biz/prop.properties from the .jar file where above .xml config > resides. > > I notice there is a setBasePath() which would probably solve the problem > if all composite config files resides below the same basepath. But in my > case the various config files reside in different jar files. > > Is there a way of loading the various config files from different .jar > files? > > -- > > > Regards/Gru�, > > Tarlika Elisabeth Schmitz > > --------------------------------------------------------------------- > 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