grails/grails-core — pull request #352 by michaelcameron (2013-05-21 19:46:55+00:00)
Title: GRAILS-9773 Configurable persistence context configuration

Only wire up the default datasource for persistence interception by default, but allow configuration of secondary datasources for persistence interception.

The behavior of only wiring up the default datasource described in [GRAILS-9773](http://jira.grails.org/browse/GRAILS-9773) is actually caused by a bug in `HibernatePersistenceContextInterceptor` that is fixed in https://github.com/SpringSource/grails-data-mapping/pull/122. This change will continue that behavior explicitly but also allo create a config option (https://github.com/grails/grails-doc/pull/137).