You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to Reproduce
define a dataSource in application.groovy (I use tomcat jdbc connection pooling)
dataSource {
pooled= true
username =
password =
...
properties {
...
maxActive=16
testOnBorrow=true
testWhileIdle=true
}
}
Reference the dataSource in a service
class MyService {
def dataSource
def myMethod() {
def sql = new Sql(dataSource)
...
}
}
Expected Behaviour
The datasource has the same custom properties as the ones set in application.groovy: i.e. testOnBorrow=true, testWhileIdle=true
Actual Behaviour
The properties inside the properties block are ignored and so testOnBorrow=false, testWhileIdle=false
Environment Information
Grails Version: 3.3.9
JDK Version: 1.8
Container Version (If Applicable): Tomcat
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
define a dataSource in application.groovy (I use tomcat jdbc connection pooling)
dataSource {
pooled= true
username =
password =
...
properties {
...
maxActive=16
testOnBorrow=true
testWhileIdle=true
}
}
Reference the dataSource in a service
class MyService {
def dataSource
def myMethod() {
def sql = new Sql(dataSource)
...
}
}
Expected Behaviour
The datasource has the same custom properties as the ones set in application.groovy: i.e. testOnBorrow=true, testWhileIdle=true
Actual Behaviour
The properties inside the properties block are ignored and so testOnBorrow=false, testWhileIdle=false
Environment Information
Grails Version: 3.3.9
JDK Version: 1.8
Container Version (If Applicable): Tomcat
The text was updated successfully, but these errors were encountered: