SHARE
TWEET

Grails Datasource reconnection properties

amitjain1982 Jan 20th, 2012 2,282 Never
  1. //Reconnection Properties
  2.         dataSource {
  3.             properties {
  4.                 maxActive = 30
  5.                 minIdle = 1
  6.                 numTestsPerEvictionRun = 3
  7.                 testOnBorrow = true
  8.                 testWhileIdle = true
  9.                 testOnReturn = true
  10.                 validationQuery = "SELECT 1"
  11.                 minEvictableIdleTimeMillis = (1000 * 60 * 5)
  12.                 timeBetweenEvictionRunsMillis = (1000 * 60 * 5)
  13.             }
  14.         }
RAW Paste Data
Top