0 Replies Latest reply on Mar 20, 2014 3:37 AM by bodiam

    Best practices for external configuration?

    bodiam

      Hi all,

       

      We're building a new JavaEE application running on JBoss EAP, and I was wondering: what would be the best place to load our configuration files from? For example, configuration like the location of our environment specific webservices, database names, etc? The current idea is to bundle the configuration in the EAR, but that would mean there would be an EAR per environment (Test, Acceptance, Production), which would all differ in contents (only a little, but you'll never know for sure). I'm sure there's a better way to do this, having just one EAR, with externalized configuration, but what's the 'standard' / best way of doing so? Property files, JNDI parameters, some JBoss configuration files, something else?

       

      All suggestions more than welcome!

       

      Erik