> On Jul 17, 2014, at 3:54 PM, Toby Lazar <tla...@capitaltg.com> wrote:
> 
> Hi,
> 
> Say I have an application that uses a properties and/or XML file that
> changes per environment.  I'd like to create the WAR once and promote it
> from TES -> STAGE -> PROD without modification.  Is this approach sensible?
> Is there a recommended approach for externalizing it?  Is it safe to
> append a folder to common.loader in catalina.properties that contains the
> properties file and just exclude that file from the built WAR file?
> 
> Thanks,
> 
> Toby
> 
> *******************************
>  Toby Lazar
>  Capital Technology Group
>  Email: tla...@capitaltg.com
>  Mobile: 646-469-5865
> *******************************

I have used a properties file per environment by placing it in the lib 
directory (since it's already in the class path). I still include a properties 
file in the .war but it looks for an external one in tomcat first. You can 
incorporate a checksum if you are worried about modifications to the properties 
file.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to