>
> we have some custom bean properties, but depending on the environment have
> different values, e.g.
>
> <!-- Test environment -->
> <property name="baseUrl" value="https://test.wyona.com/"/>
> <!-- Production environment -->
> <property name="baseUrl" value="https://www.wyona.com/"/>
>

The Spring profile machinery is intended to address this problem:

http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#beans-definition-profiles

Really, the core decision is whether to do runtime or build-time
configuration (e.g Maven profiles). Over time I have moved from build-time
configuration to runtime, which in part has happened because the Spring
facilities have improved so much. In the end it's largely a matter of
preference.

M

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to