Using Cloud Foundry Services with Spring: Part 4 – Spring Profiles
Spring 3.1 adds significant new support for environments. This new Environment API makes it easy to expose properties to an application or conditionally load a fragment of configuration.
In an earlier post in this series, Ramnivas showed how Cloud Foundry can automatically connect to a database without manual configuration. When you need more control over this process, e.g. connecting to multiple databases, the cloud namespace condenses the configuration of a DataSource
into just a single line of XML. The cloud namespace is powerful, but it is only supported for applications running in Cloud…