mssqlserver-datasource: Provision theMSSQLServerDSnon xa datasource. Depends onmssqlserver-driverlayer.mssqlserver-driver: Provision themssqlserverdriver. This layer installs the JBoss Modules modulecom.microsoft.sqlserver.
Configuration to provide when provisioning the Galleon feature-pack.
-
MSSQLSERVER_DRIVER_VERSION- Description: The version of the
com.microsoft.sqlserver:mssql-jdbcMaven artifact. - No default value.
- Required: True
- System Property:
org.jboss.eap.datasources.mssqlserver.driver.version
- Description: The version of the
The following set of environment variables and corresponding Java system properties can be used to configure the datasource.
-
MSSQLSERVER_DATABASE- Description: Defines the database name to be used in the datasource’s
connection-urlproperty. - No default value.
- Required: True if
MSSQLSERVER_URLis not set. - System Property:
org.jboss.eap.datasources.mssqlserver.database
- Description: Defines the database name to be used in the datasource’s
-
MSSQLSERVER_PASSWORD- Description: Defines the password for the datasource.
- No default value.
- Required: True
- System Property:
org.jboss.eap.datasources.mssqlserver.password
-
MSSQLSERVER_URL- Description: Defines the connection URL for the datasource.
- Default Value:
jdbc:sqlserver://${MSSQLSERVER_HOST}:${MSSQLSERVER_PORT};DatabaseName=${MSSQLSERVER_DATABASE} - Required: True if
MSSQLSERVER_PORT/HOST/DATABASEare not set. - System Property:
org.jboss.eap.datasources.mssqlserver.connection-url
-
MSSQLSERVER_USER- Description: Defines the username for the datasource.
- No default value.
- Required: True
- System Property:
org.jboss.eap.datasources.mssqlserver.user-name
-
MSSQLSERVER_BACKGROUND_VALIDATION- Description: When set to true database connections are validated periodically in a background thread prior to use. Defaults to false, meaning the
validate-on-matchmethod is enabled by default instead. - Default Value:
false - System Property:
org.jboss.eap.datasources.mssqlserver.background-validation
- Description: When set to true database connections are validated periodically in a background thread prior to use. Defaults to false, meaning the
-
MSSQLSERVER_BACKGROUND_VALIDATION_MILLIS- Description: Specifies frequency of the validation, in milliseconds, when the
background-validationdatabase connection validation mechanism is enabled. - Default Value:
10000 - System Property:
org.jboss.eap.datasources.mssqlserver.background-validation-millis
- Description: Specifies frequency of the validation, in milliseconds, when the
-
MSSQLSERVER_CONNECTION_CHECKER- Description: Specifies a connection checker class that is used to validate connections. Valid value:
org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLValidConnectionChecker - Default Value:
org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLValidConnectionChecker - System Property:
org.jboss.eap.datasources.mssqlserver.valid-connection-checker-class-name
- Description: Specifies a connection checker class that is used to validate connections. Valid value:
-
MSSQLSERVER_DATASOURCE- Description: Datasource name used in the
jndi-name. - Default Value:
MSSQLServerDS - System Property:
org.jboss.eap.datasources.mssqlserver.datasource
- Description: Datasource name used in the
-
MSSQLSERVER_ENABLED- Description: Set to false to disable the datasource.
- Default Value:
true - System Property:
org.jboss.eap.datasources.mssqlserver.enabled
-
MSSQLSERVER_EXCEPTION_SORTER- Description: Specifies the exception sorter class that is used to properly detect and clean up after fatal database connection exceptions. Valid value:
org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLExceptionSorter - Default Value:
org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLExceptionSorter - System Property:
org.jboss.eap.datasources.mssqlserver.exception-sorter-class-name
- Description: Specifies the exception sorter class that is used to properly detect and clean up after fatal database connection exceptions. Valid value:
-
MSSQLSERVER_FLUSH_STRATEGY- Description: Specifies how the datasource should be flushed in case of an error.
- Default Value:
FailingConnectionOnly - System Property:
org.jboss.eap.datasources.mssqlserver.flush-strategy
-
MSSQLSERVER_HOST(orMSSQLSERVER_SERVICE_HOST)- Description: Defines the database server’s host name or IP address to be used in the datasource’s
connection-urlproperty. - Default Value:
localhost - Required: True if
MSSQLSERVER_URLis not set. - System Property:
org.jboss.eap.datasources.mssqlserver.host
- Description: Defines the database server’s host name or IP address to be used in the datasource’s
-
MSSQLSERVER_JNDI- Description: Defines the JNDI name for the datasource.
- Default Value:
java:jboss/datasources/${MSSQLSERVER_DATASOURCE} - System Property:
org.jboss.eap.datasources.mssqlserver.jndi-name
-
MSSQLSERVER_JTA- Description: Defines Java Transaction API (JTA) option for the non-XA datasource.
- Default Value:
true - System Property:
org.jboss.eap.datasources.mssqlserver.jta
-
MSSQLSERVER_MAX_POOL_SIZE- Description: Defines the maximum pool size option for the datasource.
- Default Value:
20 - System Property:
org.jboss.eap.datasources.mssqlserver.max-pool-size
-
MSSQLSERVER_MIN_POOL_SIZE- Description: Defines the minimum pool size option for the datasource.
- Default Value:
0 - System Property:
org.jboss.eap.datasources.mssqlserver.min-pool-size
-
MSSQLSERVER_PORT(orMSSQLSERVER_SERVICE_PORT)- Description: Defines the database server’s port to be used in the datasource’s
connection-urlproperty. - Default Value:
1433 - Required: True if
MSSQLSERVER_URLis not set. - System Property:
org.jboss.eap.datasources.mssqlserver.port
- Description: Defines the database server’s port to be used in the datasource’s
-
MSSQLSERVER_IDLE_TIMEOUT_MINUTES- Description: Specifies the maximum time, in minutes, a connection may be idle before being closed.
- Default Value:
30 - System Property:
org.jboss.eap.datasources.mssqlserver.idle-timeout-minutes
-
MSSQLSERVER_STALE_CONNECTION_CHECKER- Description: Specifies a connection checker class that is used to check stale connections. Valid value: No checker provided by JBoss, only custom stale checker can be provided.
- Default Value:
org.jboss.jca.adapters.jdbc.extensions.novendor.NullStaleConnectionChecker - System Property:
org.jboss.eap.datasources.mssqlserver.stale-connection-checker-class-name
-
MSSQLSERVER_TX_ISOLATION- Description: Defines the
java.sql.Connectiontransaction isolation level for the datasource. - Default Value:
TRANSACTION_READ_COMMITTED - System Property:
org.jboss.eap.datasources.mssqlserver.transaction-isolation
- Description: Defines the
-
MSSQLSERVER_VALIDATE_ON_MATCH- Description: Indicates whether or not connection level validation should be done when a connection factory attempts to match a managed connection for a given set. This is typically exclusive to the use of background validation.
- Default Value:
true - System Property:
org.jboss.eap.datasources.mssqlserver.validate-on-match