Prior to Grails 2.0 multiple data source support is provided by the Datasources plugin.
How to use multiple data sources in Grails 1.3.3
-
13-06-2023 - |
Question
I want to user two data source in single environment.
dataSource {
dbCreate = "update" // one of 'create', 'create-drop','update'
pooled = true
driverClassName = "com.mysql.jdbc.Driver"
username = "root"
password = ""
url = ""
dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
properties {
maxActive = 75
maxIdle = 10
minIdle = 2
initialSize = 2
maxWait = 30000
validationQuery="select 1"
testOnBorrow=true
testWhileIdle=true
timeBetweenEvictionRunsMillis=60000
}
}
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow