What are the default values for datasource validation settings in JBoss EAP

Solution Unverified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4
    • 5
    • 6
    • 7

Issue

  • What are the default settings for
    • validate-on-match
    • background-validation
    • background-validation-millis
    • background-validation-minutes

Resolution

Default values have changed across releases.

EAP 4.3

jboss-as/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl
  • validate-on-match
    • true
  • background-validation
    • false
  • background-validation-minutes
    • 10

EAP 5.2

jboss-as/connector/src/resources/stylesheets/ConnectionFactoryTemplate.xsl
jboss-as/connector/src/main/org/jboss/resource/deployers/management/DsDataSourceTemplateInfo.java
  • validate-on-match
    • true
  • background-validation
    • false
  • background-validation-millis
    • 0
  • background-validation-minutes
    • 10 (deprecated for background-validation-millis)

EAP 6 / 7

<src>/connector/src/main/java/org/jboss/as/connector/subsystems/datasources/Constants.java

See Also

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.