Follow this Spring configuration recipe for integrating BoneCP into your application. This is an example of how to fetch a JDBC connection directly for use via Spring (i.e. dealing with the datasource yourself).