I\'m trying to figure out how my Spring app can determine where it is deployed and load the appropriate datasource. We have 3 environments...my local, the development server, a
I would consider using the Cocoon Spring Configurator, which can be used stand-alone, without the rest of the Cocoon project:
http://cocoon.apache.org/subprojects/configuration/spring-configurator/index.html
I found this blog post really useful to get started:
http://mrhaki.blogspot.com/2009/02/use-spring-configurator-to-support.html