J
jeremy
I've built an axis web service, and I am reading a properties file
using the code below. The problem is that depending on the
configuration of tomcat, the default location to read the file from
could theoretically be anything.
What I want is to read the file from a subdirectory in the axis
directory, but I don't want to hard code that, so how can I determine
programatically where the axis directory is located, or what the
directory of the web service is?
Properties properties = new Properties();
properties.load(new java.io.FileInputStream("My.properties"));
using the code below. The problem is that depending on the
configuration of tomcat, the default location to read the file from
could theoretically be anything.
What I want is to read the file from a subdirectory in the axis
directory, but I don't want to hard code that, so how can I determine
programatically where the axis directory is located, or what the
directory of the web service is?
Properties properties = new Properties();
properties.load(new java.io.FileInputStream("My.properties"));