posted 12 years ago
Hi,
I am writing a web servce using a configuration file:
...
prop.load(new FileInputStream(new File("ws.cfg")));
...
My problems are:
A) where, phisically, I have to put the file in the directory structure of project?
B) how I have to declare the relative path as glassfish, at run time, can read it?
For example, if I put the file in ..\src\conf (the directory is already existent by default) how i have to declare the relative path in the code to find it at run time?
I use Netbeans 7.0 and Glassfish 3.1
thank you!
Domenico