Red Hat Training

A Red Hat training course is available for Red Hat JBoss Operations Network

3.4.5.11. JBoss AS 7 and EAP 6 - Datasources (Profile) Service

Overview

Table 3.1994. Overview

Description:Datasources subsystem for profile.
Singleton: yes
Plugin:JBossAS7
Child Resource Types
Connection Properties

Table 3.1995. 

NameDescriptionRequiredInternal Name
Path  yes path

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Metrics
none
Configuration Properties
none
Operations
none
Package Types
none
3.4.5.11.1. JBoss AS 7 and EAP 6 - DataSource (Profile) Service
Overview

Table 3.1996. Overview

Description:A non-XA data source
Singleton: no
Plugin:JBossAS7
Child Resource Types
none
Connection Properties

Table 3.1997. 

NameDescriptionRequiredInternal Name
Path  yes path

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Metrics
none
Configuration Properties

Table 3.1998. 

NameDescriptionRequiredInternal Name
Connection Property  no *1
Connection UrlThe JDBC driver connection URL yes connection-url
Driver NameName of the (existing) JDBC driver to use yes driver-name
Driver ClassThe fully qualified name of the JDBC driver class no driver-class
Jndi NameSpecifies the JNDI name for the datasource yes jndi-name
DriverDefines the JDBC driver the datasource should use with this format: driver-name>#major-version.minor-version where driver-name is the fully qualified name of the JDBC driver class no driver
User NameSpecify the username used when creating a new connection. no user-name
PasswordSpecify the password used when creating a new connection. no password
New Connection SqlSpecifies an SQL statement to execute whenever a connection is added to the connection pool. no new-connection-sql
Url DelimiterSpecifies the delimiter for URLs in connection-url for HA datasources no url-delimiter
Url Selector Strategy Class NameA class that implements org.jboss.jca.adapters.jdbc.URLSelectorStrategy no url-selector-strategy-class-name
Use Java ContextSetting this to false will bind the DataSource into global JNDI; no use-java-context
EnabledSpecifies if the datasource should be enabled no enabled
JtaEnable JTA integration no jta
Max Pool SizeThe max-pool-size element indicates the maximum number of connections for a pool. No more connections will be created in each sub-pool. no max-pool-size
Min Pool SizeThe min-pool-size element indicates the minimum number of connections a pool should hold. These are not created until a Subject is known from a request for a connection. no min-pool-size
Pool PrefillWhether to attempt to prefill the connection pool. Changing this value require a server restart. no pool-prefill
Pool Use Strict MinDefine if the min-pool-size should be considered a strictly. no pool-use-strict-min
Security DomainIndicates Subject (from security domain) are used to distinguish connections in the pool. The content of the security-domain is the name of the JAAS security manager that will handleauthentication. This name correlates to the JAAS login-config.xml descriptor application-policy/name attribute. no security-domain
Reauth Plugin Class Namere-authentication plugin implementation provided for specific purpose (i.e vendor) no reauth-plugin-class-name
Flush StrategySpecifies how the pool should be flush in case of an error. no flush-strategy
Allow Multiple UsersSpecifies if multiple users will access the datasource through the getConnection(user, password) method and hence if the internal pool type should account for that no allow-multiple-users
Prepared Statements Cache SizeThe number of prepared statements per connection in an LRU cache no prepared-statements-cache-size
Share Prepared StatementsWhether to share prepare statements, i.e. whether asking for same statement twice without closing uses the same underlying prepared statement no share-prepared-statements
Track StatementsWhether to check for unclosed statements when a connection is returned to the pool and result sets are closed when a statement is closed/return to the prepared statement cache. valid values are: false - do not track statements and results true - track statements and result sets and warn when they are not closed nowarn - track statements but do no warn about them being unclosed no track-statements
Allocation RetryThe allocation retry element indicates the number of times that allocating a connection should be tried before throwing an exception. no allocation-retry
Allocation Retry Wait MillisIndicates the time in milliseconds to wait between retrying to allocate a connection. no allocation-retry-wait-millis
Blocking Timeout Wait MillisThe blocking-timeout-millis element indicates the maximum time in milliseconds to block while waiting for a connection before throwing an exception. Note that this blocks only while waiting for a permit for a connection, and will never throw an exception if creating a new connection takes an inordinately long time. no blocking-timeout-wait-millis
Idle Timeout MinutesThe idle-timeout-minutes elements indicates the maximum time in minutes a connection may be idle before being closed. The actual maximum time depends also on the IdleRemover scan time, which is 1/2 the smallest idle-timeout-minutes of any pool. Changing this value require a server restart. no idle-timeout-minutes
Query TimeoutAny configured query timeout in seconds The default is no timeout no query-timeout
Use Try LockAny configured timeout for internal locks on the resource adapter objects in seconds no use-try-lock
Set Tx Query TimeoutWhether to set the query timeout based on the time remaining until transaction timeout, any configured query timeout will be used if there is no transaction. no set-tx-query-timeout
Transaction IsolationSet java.sql.Connection transaction isolation level to use. The constants defined by transaction-isolation-values are the possible transaction isolation levels. no transaction-isolation
Check Valid Connection SqlSpecify an SQL statement to check validity of a pool connection. This may be called when managed connection is taken from pool for use. no check-valid-connection-sql
Exception Sorter Class NameAn org.jboss.jca.adapters.jdbc.ExceptionSorter that provides a boolean isExceptionFatal(SQLException e) method to validate is an exception should be broadcast to all javax.resource.spi.ConnectionEventListener as a connectionErrorOccurred no exception-sorter-class-name
Stale Connection Checker Class NameAn org.jboss.jca.adapters.jdbc.StaleConnectionChecker that provides a boolean isStaleConnection(SQLException e) method which if it it returns true will wrap the exception in an org.jboss.jca.adapters.jdbc.StaleConnectionException no stale-connection-checker-class-name
Valid Connection Checker Class NameAn org.jboss.jca.adapters.jdbc.ValidConnectionChecker that provides a SQLException isValidConnection(Connection e) method to validate is a connection is valid. An exception means the connection is destroyed. This overrides the check-valid-connection-sql when present. no valid-connection-checker-class-name
Background Validation MillisThe background-validation-millis element specifies the amount of time, in milliseconds, that background validation will run. Changing this value require a server restart. no background-validation-millis
Background ValidationAn element to specify that connections should be validated on a background thread versus being validated prior to use. Changing this value require a server restart. no background-validation
Use Fast FailWhether fail a connection allocation on the first connection if it is invalid (true) or keep trying until the pool is exhausted of all potential connections (false) no use-fast-fail
Validate On MatchThe validate-on-match element 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 no validate-on-match
Spywhatever spy or not the jdbc connection no spy
Use CcmEnable the use of a cached connection manager no use-ccm

Note

You must use the internal name to reference Configuration Properties in Dynamic Group Definition expressions.
Operations

Table 3.1999. Metrics

NameDescription
EnableEnables the data-source
DisableDisables the data-source
Package Types
none