
Grails Datasource reconnection properties
By:
amitjain1982 on
Jan 20th, 2012 | syntax:
Groovy | size: 0.48 KB | hits: 1,359 | expires: Never
//Reconnection Properties
dataSource {
properties {
maxActive = 30
minIdle = 1
numTestsPerEvictionRun = 3
testOnBorrow = true
testWhileIdle = true
testOnReturn = true
validationQuery = "SELECT 1"
minEvictableIdleTimeMillis = (1000 * 60 * 5)
timeBetweenEvictionRunsMillis = (1000 * 60 * 5)
}
}