Florin,
In Axis2 there is something called ServiceLifeCycle class, what thats
mean is that class initializes only onces. So you can use the class to
do your works. And you can specify the root directory either in
axis2.xml or services.xml file.

Thanks,
Deepal
> I am implementing a web service that needs to send some files to the
> client, and what I want is a simple straight forward way to tell my
> service the root directory in which to search for those files, and I
> was thinking whether I could use a "Configuration" singleton for
> loading a configuration file, or whether it is best to use Axis2
> properties and contexts.
>
> Personally I would go for the singleton implementation option, but I
> am wondering whether my service will get loaded with security
> restrictions that may affect either service operation (not being able
> to access the singleton -- not likely) or (more likely) the singleton
> won't have full access to the local (server's) file system, which it
> needs in order for it to read the configuration files.
>
>  Thank you,
> Florin 

-- 
Thank you!


http://blogs.deepal.org
http://deepal.org

Reply via email to