Code talks more than blog post!
Here is an example code with 2 MySql datasources and getting data from the second datasource using Groovy SQL.
https://gist.github.com/biniama/ed9e397b374211d7933b4f5c34e20f48
More reading:
http://grails.github.io/grails-doc/2.5.0/guide/single.html#multipleDatasources https://orkus.wordpress.com/2012/11/11/setup-multiple-data-sources-in-grails-2/
http://peedeebeesblog.blogspot.de/2015/04/grails-multiple-data-sources-and-plain.html?showComment=1460720540479
Here is an example code with 2 MySql datasources and getting data from the second datasource using Groovy SQL.
https://gist.github.com/biniama/ed9e397b374211d7933b4f5c34e20f48
More reading:
http://grails.github.io/grails-doc/2.5.0/guide/single.html#multipleDatasources https://orkus.wordpress.com/2012/11/11/setup-multiple-data-sources-in-grails-2/
http://peedeebeesblog.blogspot.de/2015/04/grails-multiple-data-sources-and-plain.html?showComment=1460720540479
No comments:
Post a Comment