Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 12016 invoked from network); 25 Oct 2005 03:22:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 03:22:01 -0000 Received: (qmail 79351 invoked by uid 500); 25 Oct 2005 03:21:49 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79337 invoked by uid 500); 25 Oct 2005 03:21:49 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 79325 invoked by uid 99); 25 Oct 2005 03:21:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2005 20:21:49 -0700 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.68.5.9] (HELO relay.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Oct 2005 20:21:47 -0700 Received: (qmail 27942 invoked from network); 25 Oct 2005 03:21:26 -0000 Received: from unknown (HELO Deepal) (unknown) by unknown with SMTP; 25 Oct 2005 03:21:26 -0000 X-pair-Authenticated: 220.247.243.221 Message-ID: <090401c5d913$2e24d920$c201a8c0@Deepal> From: "Deepal Jayasinghe" To: References: <1130161363.30242.5.camel@kesch.itserve.ch> Subject: Re: [Axis2] Access a resource inside of a Axis2 archive Date: Tue, 25 Oct 2005 09:21:23 +0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Yvess; The correct way is get the ServiceDescription from , MessageContxt and then you can get the correct classloader for that service (which has all you lib files) from serviceDescription ClassLoader cl = sd.getClassLoader(); next you can load the properties you want. Thanks, Deepal ................................................................ ~Future is Open~ ----- Original Message ----- From: "Yves Langisch" To: Sent: Monday, October 24, 2005 7:42 PM Subject: [Axis2] Access a resource inside of a Axis2 archive > Hi > > I've a Axis2 archive file (.aar) which contains several libraries in > the /lib folder. In my *PortSkeleton class I'm looking for a way to > load a properties file that is in one of this libs. I tried with > this.getClass().getResource("my.properties") (also with > "lib/my.properties") without success. How can I achieve this? > > Thanks > Yves > >