Hi,

I would like to have a system property (or some other external means) to override the WebApplicationContext.CONFIG_LOCATION_PARAM
so I can have multiple Spring configurations for one Web Application.

The reason I would like this is that I want to integration test my web application without a database using stubs for my DAO's. I would have two context parameters:
contextConfigLocation=
/WEB-INF/applicationContext.xml classpath:dao.xml
testContextConfigLocation=
/WEB-INF/applicationContext.xml classpath:stubdao.xml

I feel this may be generally useful and would like to see it included in Spring. Does anyone else agree or is there already a way of achieving what I need?

Regards,
Gordon.