I'm using Axis2, and when I need to get to my files I usually have to use the 
AxisService.getClassLoader() classLoader.

Maybe:

prop.load(AxisService.getClassLoader().getResourceAsStream("props.ini"))


-----Original Message-----
From: VF [mailto:[EMAIL PROTECTED]
Sent: Thu 10/12/2006 3:32 AM
To: [email protected]
Subject: file loading from aar
 
Hi,how can I correctly load ini file for my properties object in web
service? I have my code in skeleton implementation:


....

try {
            prop.load(new FileInputStream("props.ini"));
        }
        catch (Exception e) {
....


And this file should by next to my aar file. Example:

c:\Program Files\Tomcat55\webapps\axis2\WEB-INF\services\fileservice.aar
c:\Program Files\Tomcat55\webapps\axis2\WEB-INF\services\props.ini


I need relative path. Thank you for response.


          Vladi



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to