axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe" <dee...@opensource.lk>
Subject Re: [Axis2] Access a resource inside of a Axis2 archive
Date Tue, 25 Oct 2005 03:21:23 GMT
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" <lists@langisch.ch>
To: <axis-dev@ws.apache.org>
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
>
> 



Mime
View raw message