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
                    } 
            }
Was it helpful?

Solution

Prior to Grails 2.0 multiple data source support is provided by the Datasources plugin.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top