Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. dataSource {
  2. pooled = true
  3. url = 'jdbc:mysql://******.**********.us-east-1.rds.amazonaws.com/*****'
  4. driverClassName = 'com.mysql.jdbc.Driver'
  5. username = '********'
  6. password = '******************'
  7. dialect = org.hibernate.dialect.MySQL5InnoDBDialect
  8. loggingSql = false
  9. properties {
  10. jmxEnabled = true
  11. initialSize = 5
  12. timeBetweenEvictionRunsMillis = 10000
  13. minEvictableIdleTimeMillis = 60000
  14. validationQuery = "SELECT 1"
  15. initSQL = "SELECT 1"
  16. validationQueryTimeout = 10
  17. testOnBorrow = true
  18. testWhileIdle = true
  19. testOnReturn = true
  20. testOnConnect = true
  21. removeAbandonedTimeout = 300
  22. maxActive=100
  23. maxIdle=10
  24. minIdle=1
  25. maxWait=30000
  26. maxAge=900000
  27. removeAbandoned="true"
  28. jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.StatementCache;"
  29.  
  30. }
  31. }
  32.  
  33. hibernate {
  34. cache.use_second_level_cache=true
  35. cache.use_query_cache=true
  36. cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement