First, some context:
I\'m currently working on a project in which I use the Spring framework on Google\'s AppEngine (GAE) to fetch some data from one of Google\'s se
A couple of options:
You can use a prefix to control environment specific properties, this can be done by using system variables:
In this case it will always look under:
by default, unless a ENV_SYSTEM system variable is set. If it is set to qa, for example, it will automatically look under:
Another approach is to make beans profile specific. For example:
The appropriate googleProperties will loaded depending on a profile set. For example this will load WEB-INF/google-dev.properties:
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
ctx.getEnvironment().setActiveProfiles( "dev" );
ctx.load( "classpath:/org/boom/bang/config/xml/*-config.xml" );
ctx.refresh();