Want more features on Pastebin? Sign Up, it's FREE!
Guest

Grails Datasource reconnection properties

By: amitjain1982 on Jan 20th, 2012  |  syntax: Groovy  |  size: 0.48 KB  |  views: 1,887  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }
clone this paste RAW Paste Data