Advertisement
amitjain1982

Grails Datasource reconnection properties

Jan 20th, 2012
3,225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.48 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement