Hello,
I am sure this question has cropped up before, and although I have looked around for a suitable answer, I have not found anything that helps.
In my
JSF 2.0 application I have a couple of resources files. One is used to specify the paths and file names to files that are read from folders that outside the application, and one is used to initialize a number of variables. At the moment both resources files are in the same folder as the
Java classes, as is usually the case.
For example I have code such as:
Which is all well and good, and works without any problems.
However, I need to deploy the war file on another server, and I want to make it easy to edit the properties files and not have them inside the war file. Is there an easy way of putting the properties files in an extenal directory, so that they can be edited, and at the same time my application can know where they are located?
I am using the Glassfish server, but want to avoid, if possible, changing the server, and somehow make the application aware of where the properties files are.
Some advice would be most appreciated - many thanks in advance.