JBoss数据源配置参数

 

Common DataSource parameters

 

  •  - the JNDI name under which the DataSource should be bound.

  •  - A boolean indicating if the jndi-name should be prefixed with java: which causes the DataSource to only be accessible from within the jboss server vm. The default is true.

  •  - the user name used when creating the connection (not used when security is configured)

  •  - the password used when creating the connection (not used when security is configured)

  •  - the default transaction isolation of the connection (unspecified means use the default provided by the database):

    • TRANSACTION_READ_UNCOMMITTED

    • TRANSACTION_READ_COMMITTED

    • TRANSACTION_REPEATABLE_READ

    • TRANSACTION_SERIALIZABLE

    • TRANSACTION_NONE

 

  •  - an sql statement that is executed against each new connection. This can be used to set the connection schema, etc.

  •  - an sql statement that is executed before it is checked out from the pool (see ) to make sure it is still valid. If the sql fails, the connection is closed and new ones created. Also it will be used by

  •  - a class that can check whether a connection is valid using a vendor specific mechanism

  •  - a class that looks at vendor specific messages to determine whether sql errors are fatal and thus the connection should be destroyed.  If none specified, no errors will be treated as fatal.

  •  - (a) whether to monitor for unclosed Statements and ResultSets and issue warnings when the user forgets to close them (default nowarn)

  •  - the number of prepared statements per connection to be kept open and reused in subsequent requests. They are stored in aLRU cache. The default is 0 (zero), meaning no cache.

  •  - (b) with prepared statement cache enabled whether two requests in the same transaction should return the same statement (from jboss-4.0.2 - default false).

  •  - Whether to enable query timeout based on the length of time remaining until the transaction times out.  This was not ported to 4.0.x until 4.0.3.  Also, it exists in 4.2.x but doesn't function with the JBossTS transaction manager.  JBossTS incorporated this functionality in 5.0.  Default is false.

  •  - A static configuration of the maximum of seconds before a query times out (since 4.0.3).  This value will be overridden appropriately if is true.  The default is "0" (i.e. infinite).

  •  - a pointer to the type mapping in conf/standardjbosscmp.xml (from JBoss4)

  •  - whether to validate the connection when the JCA layer matches a managed connection (i.e. when the connection is checked out of the pool). With the addition of this is not necessarily required.  Note: Specifying "true" for is typically not done in conjunction with specifying "true" for as this would be overkill in most scenarios.  Default is true.

  •  - whether to attempt to prefill the connection pool to the minimum number of connections. NOTE: only supporting pools (OnePool) support this feature. A warning can be found in the logs if the pool does not support this.  Default is false.

  •  - In JBoss 4.0.5 background connection validation was added to help reduce the overall load on the RDBMS system when validating a connection. When using this feature, JBoss will attempt to validate the current connections in the pool is a seperate thread (ConnectionValidator). This must be set to true for to take effect.  Default is false.

  •  - indicates the maximum time a connection may be idle before being closed. Setting to 0 disables it.  Default is 15 minutes.

    (到回收时间时将回收所有空闲的连接,然后再refill到  min-pool-size .不知道能否设置成,回收的时候自动判断只回收超过 min-pool-size的 空闲连接? )

  •  - The interval, in minutes, that the ConnectionValidator will run. Default is 10 minutes. NOTE: It is prudent to set this value to something greater or less than the

  •  - This replaces since JBoss 5.0, is no longer supported. Also true is redundant, any background-validation-millis > 0 will enable background validation. Seehttps://jira.jboss.org/browse/JBAS-4088.
  •  - From JBoss5 database failover is part of the main datasource config

  •  - From JBoss5 database failover is part of the main datasource config

  •  - From JBoss5 ONLY database failover is part of the main datasource config
  •  - An implementation of org.jboss.resource.adapter.jdbc.StateConnectionChecker that will decide whether SQLExceptions that notify of bad connections throw org.jboss.resource.adapter.jdbc.StateConnectionException (from JBoss5)
  •  - the maximum number of connections allowed in the pool.  Default is 20.
  •  - the minimum number of connections maintained in the pool.  Unless is true then the pool will remain empty until first use at which point the pool will be filled to the .  When the pool size drops below the due to idle timeouts the pool will be refilled to the .  Default is 0.
  •  - the length of time to wait for a connection to become available when all the connections are checked out.  Default is 30000 (30 seconds).
  •  - whether or not to continue to attempt to acquire a connection from the pool even if the nth attempt has failed.  This is to address performance issues where validation SQL takes significant time and resources to execute.  Default is false.

你可能感兴趣的:(JBoss)