Alex Rivera | Logout

How do you access two databases in Grails

Asked 2008-09-03T01:23:49.963
22

Grails makes it very easy to configure datasources for different environments (development, test, production) in its DataSources.groovy file, but there seems to be no facility for configuring multiple datasources in one environment. What to I do if I need to access several databases from the same Grails application?

Edit
Report

1 Answer

20

If using Grails 2.0 or higher, there is no need for the plugin, it is supported natively.

http://www.grails.org/doc/latest/guide/single.html#multipleDatasources

answered 2012-02-03T23:47:30.373

Your Answer