ESTABLISH AN EFFECTIVE BLUEPRINT
The secret to establishing an effective blueprint is to take full advantage of your
deployment platform. Because Spring keeps environmental dependencies out of
your application code this becomes much easier to do.
For database connection pools, if you are running on an application server then
use a pool configured through the administration console and configure Spring
to look the reference up via JNDI. For example, use
<jee:jndi-lookup id="dataSource"
jndi-name="jdbc/MyDataSource"/>
Instead of
<bean id="dataSource"
Spring in Production // 12