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
Have a look here: http://blog.jayway.com/2010/10/21/environment-specific-configuration-of-spring-applications/
You can have a default config in your app, and optionally override it with a file in a predefined place on your file system.