axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe" <dee...@opensource.lk>
Subject Re: [Axis2] aar/jar file path
Date Fri, 20 Jan 2006 04:14:27 GMT
Hi Bram;

well the right way of doing is take service class loader and load the 
resurces.

You can package your aar file putting your resources , and say that when a 
requst come you want to acess your resources from service impl class then 
the right way is as follows;

InputStream in = 
getClass().getClassLoader().getResourceAsStream("myResource.resourec");

I tested it and it work from me . pls do a try and if you have some problem 
, let us know

Thanks,
 Deepal
................................................................
~Future is Open~

----- Original Message ----- 
From: "Bram Biesbrouck" <b@beligum.org>
To: <axis-user@ws.apache.org>
Sent: Friday, January 20, 2006 4:47 AM
Subject: [Axis2] aar/jar file path


> Hi all,
>
> If a class in my .aar file wants to read from a resource in that .aar file
> (via File, InputStream), how do I set/get the path that is searched for by
> Axis?
>
> Bram
> 



Mime
View raw message