Loading application config files based on environment

Posted on

Currently my application is loading the configuration files from the custom module ( pls refer to the attached jboss-deployment-structure.xml). I have kept all my application config files under the 'main' folder of my custom module and they are getting loaded successfully. But my requirements is to load different set on configuration files for different environment. I learnt that it is achievable my creating one folder for each environment under the 'main' folder. My question here is that how do I tell Jboss while starting to load the config files under a particular folder and if I didn't specify , Jboss should pick from the default folder. Please advice on how to achieve it.