9 Connection Pool Manager : About JDBC Connection Pools

About JDBC Connection Pools
There is a one-to-one relationship between a JDBC connection pool and a data source, so the number of connection pools used by an application depends on the number of data sources configured to use connection pooling. If multiple applications are configured to use the same data source, those applications share the same connection pool as shown in Figure 9-1.
Figure 9-1. One Connection Pool for Each Data Source Used by the Application
Connection pool without reauthentication showing separate groups of connections for different users within the same pool
 
An application may use only one data source, but allow multiple users, each with their own set of login credentials. The connection pool contains connections for all unique users using the same data source as shown in Figure 9-2.
Figure 9-2. One Connection Pool for Multiple Unique Users
Connection pool without reauthentication showing separate groups of connections for different users within the same pool
 
Connections are one of the following types:
■
Active connection is a connection that is in use by the application.
■
Idle connection is a connection in the connection pool that is available for use.