Lester Burnham wrote:Having an editable file in WEB-INF only really works if the web app is run from a directory structure, though, not if it's run directly from a .war file, or from an exploded .war file.
Tim Holloway wrote: Select/create an external configuration directory that will contain the config files. In Linux, that might be /etc/myapp or /opt/com/mycompany/myapp, or /var/lib/myapp, depending on circumstances.
Tim Holloway wrote:It's a bit "iffy" looking for OS environment variables in webapps.
Tim Holloway wrote: But the JNDI-located context variables are functionally equivalent. So yes, you have my seal of approval
Tim Holloway wrote:
Here's a typical config:
Tim Holloway wrote:The Environment element goes in as a sub-element to the Context element