-
<new-connection-sql> - an sql statement that is executed against each new connection. This can be used to set the connection schema, etc.
-
<check-valid-connection-sql> - an sql statement that is executed before it is checked out from the pool (see <validate-on-match>) 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 <background-validation>
-
<valid-connection-checker-class-name> - a class that can check whether a connection is valid using a vendor specific mechanism
-
<exception-sorter-class-name> - 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.
-
<track-statements> - (a) whether to monitor for unclosed Statements and ResultSets and issue warnings when the user forgets to close them (default nowarn)
-
<prepared-statement-cache-size> - 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.
-
<share-prepared-statements> - (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).
-
<set-tx-query-timeout> - 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.
-
<query-timeout> - A static configuration of the maximum of seconds before a query times out (since 4.0.3). This value will be overridden appropriately if <set-tx-query-timeout> is true. The default is "0" (i.e. infinite).
-
<metadata/typemapping> - a pointer to the type mapping in conf/standardjbosscmp.xml (from JBoss4)
-
<validate-on-match> - 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 <background-validation> this is not necessarily required. Note: Specifying "true" for <validate-on-match> is typically not done in conjunction with specifying "true" for <background-validation> as this would be overkill in most scenarios. Default is true.
-
<prefill> - 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.
-
<background-validation> - 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 <background-validation-minutes> to take effect. Default is false.
-
<idle-timeout-minutes> - 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的 空闲连接? )
-
<background-validation-minutes> - 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 <idle-timeout-minutes>
-
<background-validation-millis> - This replaces <background-validation-minutes> since JBoss 5.0, <background-validation-minutes> is no longer supported. Also <background-validation>true</background-validation> is redundant, any background-validation-millis > 0 will enable background validation. Seehttps://jira.jboss.org/browse/JBAS-4088.
-
<url-delimiter> - From JBoss5 database failover is part of the main datasource config
-
<url-property> - From JBoss5 database failover is part of the main datasource config
-
<url-selector-strategy-class-name> - From JBoss5 ONLY database failover is part of the main datasource config
-
<stale-connection-checker-class-name> - 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)
-
<max-pool-size> - the maximum number of connections allowed in the pool. Default is 20.
-
<min-pool-size> - the minimum number of connections maintained in the pool. Unless <prefill> is true then the pool will remain empty until first use at which point the pool will be filled to the <min-pool-size>. When the pool size drops below the <min-pool-size> due to idle timeouts the pool will be refilled to the <min-pool-size>. Default is 0.
-
<blocking-timeout-millis> - the length of time to wait for a connection to become available when all the connections are checked out. Default is 30000 (30 seconds).
-
<use-fast-fail> - 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.
相关推荐
本主题主要聚焦于"tomcat jboss数据源配置.rar",这是一个关于如何在Tomcat 5.5和JBoss 4.0中配置数据源,特别是与Oracle数据库交互的详细过程。下面将深入探讨这两个关键组件以及数据源配置的相关知识点。 首先,...
配置JBOSS数据源的步骤通常包括以下几个环节: 1. **创建数据源配置文件**:在JBOSS的配置目录下,如`$JBOSS_HOME/standalone/configuration/standalone.xml`或`$JBOSS_HOME/server/default/deploy/jboss-service....
本文将详细介绍如何在 JBoss 中配置 Oracle 数据源,包括复制配置文件、编辑配置文件、设置数据源参数等步骤。 一、复制配置文件 首先,我们需要将 %JBOSS_HOME%\docs\examples\jca\oracle-ds.xml 复制到 %JBOSS_...
通过对EJB部署描述符、JDBC驱动程序、数据源配置文件及连接池参数的合理设置,可以有效地实现不同数据库与JBoss应用服务器的集成。这不仅有助于提高系统的性能和稳定性,还能满足不同场景下的业务需求。
* 数据源配置文件:位于$JBOSS-HOME/server/default/deploy下,文件格式必须是*-ds.xml的样式。 * 公共jar包:位于$JBOSS-HOME/server/default/lib下,用于存放公共的jar包,如数据库的JDBC jar、log4j.jar等。 * ...
根据文件提供的信息,本文将详细介绍JBoss7配置Mysql5.1数据源的过程。 JBoss是一个开源的应用服务器,支持Java EE应用程序,而Mysql是一个广泛使用的开源关系数据库管理系统。在JBoss上配置Mysql数据源是一个常见...
"在JBoss中配置多个数据库和数据源" 在JBoss中配置多个数据库和数据源是非常复杂的,因为JBoss是一款非常强大的J2EE应用程序服务器。配置多个数据库和数据源需要了解JBoss的配置选项和数据源的配置信息。 首先,...
Druid、DBCP、C3P0、JBoss、Weblogic、Proxool 文档中包括 以上各个数据源配置参数中文含义,并不包括配置实例,请注意。
当我们需要在JBoss应用服务器上配置Oracle9i作为数据源时,这通常涉及到应用程序与数据库之间的连接管理,以便于程序能够安全、高效地访问数据库中的数据。这篇博客"6.3 JBoss下Oracle9i数据源配置"可能详细阐述了这...
本文将深入解析如何在JBoss中配置MySQL的JNDI数据源,确保应用程序能够高效、稳定地访问数据库资源。 ### JBoss与JNDI的关联 JBoss作为一个高性能的Java应用服务器,提供了丰富的功能支持企业级应用开发。JNDI作为...
3. **模块化服务的集群化**:例如,数据源、EJB和缓存等服务需配置为集群模式,以实现资源共享和高可用性。 4. **HA策略**:配置高可用性策略,如失败探测和恢复机制,确保服务在节点故障后能够快速恢复。 5. **...
本文将详细讲解如何在JBoss中配置Oracle数据源,以便应用程序能够高效、安全地连接到Oracle数据库。 首先,Oracle数据源的配置主要涉及到JBoss服务器的配置文件,通常在`standalone.xml`或`domain.xml`中进行。在这...
3. **数据源配置**:数据源是JBOSS连接数据库的关键部分。在`server/default/conf/jboss-service.xml`或`server/default/deploy/jboss-jdbc.rar/META-INF/jBoss-service.xml`中,你可以定义数据源。配置包括驱动类名...
三、数据源配置 数据源是连接到数据库的关键组件。在`standalone.xml`或`domain.xml`文件中,通过`datasources`子系统配置数据源,包括驱动类、URL、用户名、密码等。例如: ```xml <datasource jndi-name="java:...
- **子系统配置**:管理员需要掌握如何配置JBoss7的各个子系统,例如数据源的配置。 ### 结论 JBoss7.1.1配置指南及管理员手册是一份详尽的参考资料,面向希望深入配置和管理JBoss应用服务器的IT专业人员。通过这...
在本教程中,我们将深入探讨如何在Spring MVC 3中结合MyBatis并利用JTA(Java Transaction API)以及JBoss 7.1应用程序服务器来配置多数据源环境。这个配置对于那些需要处理多个数据库或者分布式事务的项目来说至关...
例如,调整EJB的超时设置,修改JNDI绑定,配置数据源,以及设置JMS队列和主题等,都需要对相应的配置文件进行编辑。在`server/default/deploy`目录下,你可以找到如`jboss-service.xml`、`jboss-jdbc.xml`、`jboss-...
2. **数据源配置**:在JBOSS中,数据源的配置位于`standalone.xml`或`domain.xml`的`subsystem`部分。通过`data-source`元素,可以定义连接数据库的URL、用户名、密码、驱动类名等信息。此外,还可以配置连接池参数...
- **Attributes(属性)**:配置参数。 - **Children(子节点)**:管理资源之间的层次关系。 - **Descriptions(描述)**:对管理资源的解释和说明。 - **与JMXBeans相比**:对比传统的Java管理扩展模型。 - **管理...