From user-return-659-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Sat Aug 06 00:44:40 2005 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 38011 invoked from network); 6 Aug 2005 00:44:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Aug 2005 00:44:40 -0000 Received: (qmail 37160 invoked by uid 500); 6 Aug 2005 00:44:39 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 37143 invoked by uid 500); 6 Aug 2005 00:44:38 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 37130 invoked by uid 99); 6 Aug 2005 00:44:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2005 17:44:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [209.233.18.245] (HELO buttons.boynes.com) (209.233.18.245) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2005 17:44:28 -0700 Received: from [192.168.37.199] (unknown [192.168.37.199]) by buttons.boynes.com (Postfix) with ESMTP id 3266517E3D for ; Fri, 5 Aug 2005 17:44:35 -0700 (PDT) Message-ID: <42F407F3.6040307@apache.org> Date: Fri, 05 Aug 2005 17:44:35 -0700 From: Jeremy Boynes User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: Setting external directory in classpath References: <543109.post@talk.nabble.com> In-Reply-To: <543109.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Krish (sent by Nabble.com) wrote: > Hi, > > I want to set an external directory thats part of classpath in > geronimo. Is it possible to do this? > > I have some config properties that i want outside my web application. > Hence i am storing it in a directory under /myconfig. I want to > access this directory without hardcoding in my app. > We try to isolate applications from wierd things in the environment so the server ignores the value of the CLASSPATH environment variable. Geronimo deployment plans support the concept of dependencies which can be resolved from a Repository or using absolution URLs. We commonly use this to add jar files into applications rather than messing with the manifest classpath like the spec says. You can reference something in the repository using a dependency element in your deployment plan, something like myapp/info/myconfig/ This relative URI will get resolved by the Repository somehow; the default implementation will resolve it against the ${geronimo.base.dir}/repository/ directory where the base dir is where you installed Geronimo. You can also use absolute URIs. For example, file:///myconfig/ will add /myconfig/ directory to the application's classpath. Hope that helps -- Jeremy