You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Steven Gollery <sg...@cadrc.calpoly.edu> on 2002/02/22 00:41:45 UTC

property files for services

I'm working on a web service that requires the ability to read some
properties from a file when the service starts. I've tried using
Properties.load to read the file, but this only works when I hard-code
the entire path to the file in the code for the web service, which seems
unsatisfactory. I'd like to be able to load the properties file without
assuming a specific directory structure -- probably this means using a
path that is relative to the class file or jar file for the web service,
or some similar approach.

Is there any way for a web service to find a file without relying on a
hard-coded path?

Steven Gollery
sgollery@cadrc.calpoly.edu