you can declare your property file name as a parameter in services.xml

<parameter name="propertyFileName"><file Name></parameter>

and access in the service class.

MessageContext.getCurrentMessageContext().getAxisService().getParameter("propertyFileName").getValue()

thanks,
Amila.



On Fri, Sep 12, 2008 at 12:23 PM, satheesh <[EMAIL PROTECTED]>wrote:

>
> Hi all,
>
> I have written application using axis2 and deployed in Tomcat. I have to
> read some values from properties file at run time? how can I define a
> properties file in MyService.aar file read it in my service class ?
>
> thank you in advance.
> satheesh
> --
> View this message in context:
> http://www.nabble.com/Reading-a-properties-file-from-Axis2-service-class-tp19450498p19450498.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to