另一个可能受影响的资源是数据库连接池。
Another resource that can be affected is the database connection pool.
数据库连接池配置:cmbpool . ini。
众所周知,使用数据库连接池可以获得许多性能优势。
It is common knowledge that you can gain a lot of performance benefits by using database connection pools.
根据规范,应用程序模块使用数据库连接池需要两个步骤。
As per the specification, two steps are needed for an application module to use a database connection pool.
会话bean非常简单并且使用数据库连接池直接访问数据库。
The session bean is very simple and accesses the database directly using a pooled database connection.
清单4显示了在应用程序模块中查找创建的数据库连接池所需的代码。
Listing 4 shows the code in the application module needed to lookup the created database connection pool.
实现数据库连接池,重用连接对象,而不是重复地打开和关闭连接。
Implement connection pools to the database and reuse connection objects, rather than repeatedly opening and closing connections.
本例中的EJB组件使用JNDI查询来确定数据库连接池资源的位置。
The EJB component in this example USES a JNDI lookup to locate the database connection pool resource.
您了解了如何使用Geronimo控制台来初始化数据库并配置数据库连接池。
You learned how the Geronimo console is used to initialize the database and configure a database connection pool.
同样地,应用程序设计也能调优性能:更少的对象创建、实时的数据库优化以及使用数据库连接池。
Similarly the application design can be tuned for performance: Fewer object creations, ongoing database refinements, and using database connection pooling.
监视诸如堆、Servlet线程和数据库连接池等顶级组件,可以了解JVM处理请求时所发生的情况。
Monitoring the top-level components, such as the heap, servlet threads, and DB connection pool, provides an insight into what is happening when a request is being processed by the JVM.
比如数据库连接池就是单例设计模式的一个例子:我们一般不想让应用程序具有连接池类的多个资源密集型实例。
An example use case for a singleton would be a database connection pool: you don't want your application to have multiple resource-intensive instances of a connection pool class.
清单6中的脚本将Trade6应用程序中使用的JDBC数据源的数据库连接池限制设置为 113。
The script in Listing 6 sets the database connection pool limit to 113 for the JDBC data source used in the Trade6 application.
数据库连接池的工作方式与数据存储池相似,但是连接池在更低的层次(LibraryServer数据库的实际数据库连接)上透明地工作。
The database connection pool works similarly to the datastore pool, but the connection pool works transparently at the lower level of actual database connections to the Library Server database.
当数据库连接池与Derby (org.apache.derby/derby/10.1.1.0/jar)或Derbynet (org.apache.derby/derbynet/10.1.1.0/jar)驱动程序具有依赖性时就会引发此条件。
The condition is caused when a database connection pool has a dependency on the Derby (org.apache.derby/derby/10.1.1.0/jar) or Derbynet (org.apache.derby/derbynet/10.1.1.0/jar) drivers.
打开和关闭连接的过程开销较大,会影响到应用程序或数据库的性能,而使用连接池就可以消除大部分这样的开销。
Opening and closing connections is an expensive process affecting application or database performance and the use of connection pooling helps eliminate most of that overhead.
要连接到该数据库,可以将SQLLoginModule配置为直接使用JDBC,或者使用CommunityEdition中的连接池。
To connect to the database, the SQLLoginModule can be configured to either use JDBC directly, or use the connection pools in Community Edition.
有关连接池的文档(请参阅参考资料)指出应用程序在执行它们的事务时应该短暂地维持数据库连接。
Documentation on connection pooling (see the Resources section later in this article) states that applications should briefly hold database connections while executing their transactions.
由于连接池有许多优点,所以在Web应用程序中偏爱使用数据源对象的方法来处理数据库连接。
Because of the advantages of connection pooling, using data source objects is the preferred method of handling database connections in Web applications.
Sequel具有线程安全,连接池等特性,同时提供了简洁的DSL用来创建数据库查询以及表方案。
Sequel provides thread safety, connection pooling and a concise DSL for constructing database queries and table schemas.
为Informix数据库创建连接池。
接下来将为新创建的数据库创建连接池
Next you create a connection pool for the recently created database
对于典型的J2EE应用程序,会对所有数据库访问使用单个连接池标识。
With typical J2EE applications, a single connection pool identity is used for all database access.
所有这一切都依赖于数据库服务器和管理连接池的中间件的可伸缩性。
All this depends on both the scalability of the database server and the middleware managing the connection pool.
大多数数据库厂商也实现了自己的兼容jdbc 3.0的连接池。
Most database vendors also implement their own JDBC 3.0-compliant connection pools.
每个J2C连接工厂和每个JDBC数据源本身都有连接到相应远程系统(企业信息系统或数据库)的连接池。
Each J2C connection factory and each JDBC datasource has its own pool of connections to the corresponding remote system (Enterprise Information system or database).
相反,我们可以使用DataSource对象(WebSphere中定义的一种使用连接池机制的数据库连接)连接到我们的DB 2II数据库,这正是我们准备做的。
Instead, we connected to our DB2 II database using a DataSource object (a pooled database connection defined in WebSphere) and we were ready to go.
您将在WebLogic服务器中用DB 2数据库来配置一个连接池,这是一组到数据库的连接。
You should configure a connection pool, which is a set of connections with a database, in the WebLogic server with the DB2 database.
调优连接池的目标是确保各线程都有一个数据库连接,并且请求不需要排队以等待访问数据库。
The goal of tuning the connection pool is to ensure that each thread that needs a connection to the database has one, and that requests are not queued up waiting to access the database.
例如,到一个JDBC支持的数据库的连接通过使用的JDBC数据源定义连接池;JMS和其他J2C连接池通过激活规范定义。
For example, connections to a JDBC-backed database are pooled via the JDBC datasource that is used; JMS and other J2C connection pools are defined through the activation specification.
应用推荐