Guest User

Untitled

a guest
Nov 26th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. dataSource {
  2. pooled = true
  3. jmxExport = true
  4. //driverClassName = "org.h2.Driver"
  5. driverClassName = "net.sourceforge.jtds.jdbc.Driver"
  6. username = "sa"
  7. password = "Expertflow464"
  8. }
  9. hibernate {
  10. cache.use_second_level_cache = true
  11. cache.use_query_cache = false
  12. // cache.region.factory_class =
  13. 'net.sf.ehcache.hibernate.EhCacheRegionFactory' // Hibernate 3
  14. cache.region.factory_class =
  15. 'org.hibernate.cache.ehcache.EhCacheRegionFactory' // Hibernate 4
  16. singleSession = true // configure OSIV singleSession mode
  17. logSql = true
  18. }
  19.  
  20. // environment specific settings
  21. environments {
  22. development {
  23. dataSource {
  24. dbCreate = "update" // one of 'create', 'create-drop',
  25. 'update', 'validate', ''
  26. //url =
  27. "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;
  28. DB_CLOSE_ON_EXIT=FALSE"
  29. url = "jdbc:jtds:sqlserver://192.168.1.35:1433/efadminpanel"
  30. driverClassName = "net.sourceforge.jtds.jdbc.Driver"
  31. username = "sa"
  32. password = "Expertflow464"
  33. }
  34. }
  35. production {
  36. dataSource {
  37. dbCreate = "update"
  38. //url = "jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE"
  39. url = "jdbc:jtds:sqlserver://192.168.1.35:1433/efadminpanel"
  40. driverClassName = "net.sourceforge.jtds.jdbc.Driver"
  41. username = "sa"
  42. password = "Expertflow464"
  43. properties {
  44. // See http://grails.org/doc/latest/guide/conf.html#dataSource for documentation
  45. jmxEnabled = true
  46. initialSize = 5
  47. maxActive = 50
  48. minIdle = 5
  49. maxIdle = 25
  50. maxWait = 10000
  51. maxAge = 10 * 60000
  52. timeBetweenEvictionRunsMillis = 5000
  53. minEvictableIdleTimeMillis = 60000
  54. validationQuery = "SELECT 1"
  55. validationQueryTimeout = 3
  56. validationInterval = 15000
  57. testOnBorrow = true
  58. testWhileIdle = true
  59. testOnReturn = false
  60. jdbcInterceptors = "ConnectionState"
  61. defaultTransactionIsolation =
  62. java.sql.Connection.TRANSACTION_READ_COMMITTED
  63. }
  64. }
  65. }
  66. }
Add Comment
Please, Sign In to add comment