Reputation: 129
I want to work with 2 database in grails project,how can i defined 2 databases and how the domain Class and controller class point to the correct database ?
Upvotes: 1
Views: 1042
Reputation: 19645
There is Grails plugin that enables the use of multiple datasources directly with Grails' GORM layer: http://burtbeckwith.com/blog/?p=70
But as of grails 2.0 you can do it natively. http://www.grails.org/doc/latest/guide/single.html#multipleDatasources
Upvotes: 3