Sun Java System Application Server Platform Edition 9 Administration Guide

Connector Connection Pools

The following table describes connection pool settings:

Parameter 

Description 

Initial and Minimum Pool Size 

The minimum number of connections in the pool. This value also determines the number of connections placed in the pool when the pool is first created or when application server starts. 

Maximum Pool Size 

The maximum number of connections in the pool. 

Pool Resize Quantity 

When the pool shrinks toward the minimum pool size it is resized in batches. This value determines the number of connections in the batch. Making this value too large will delay connection recycling; making it too small will be less efficient. 

Idle Timeout 

The maximum time in seconds that a connection can remain idle in the pool. After this time expires, the connection will be removed from the pool. 

Max Wait Time 

The amount of time the application that has requested a connection will wait before getting a connection time-out. Because the default wait time is long, the application might appear to hang indefinitely. 

On Any Failure 

If you select the checkbox labelled Close All Connections, if a single connection fails, then the application server will close all connections in the pool and then reestablish them. If you do not select the checkbox, then individual connections will be reestablished only when they are used. 

Transaction Support 

Use the Transaction Support list to select the type of transaction support for the connection pool. The chosen transaction support overrides the transaction support attribute in the resource adapter associated with this connection pool in a downward compatible way. In other words, it can support a lower transaction level than that specified in the resource adapter or the same transaction level as that specified in resource adapter, but it cannot specify a higher level. 

The None selection from the Transaction Support menu indicates that the resource adapter does not support resource manager local or JTA transactions and does not implement XAResource or LocalTransaction interfaces. For JAXR resource adapters, you need to choose None from the Transaction Support menu. JAXR resource adapters do not support local or JTA transactions.

Local transaction support means that the resource adapter supports local transactions by implementing the LocalTransaction interface. Local transactions are managed internal to a resource manager and involve no external transaction managers.

XA transaction support means that the resource adapter supports resource manager local and JTA transactions by implementing the LocalTransaction and XAResource interfaces. XA transactions are controlled and coordinated by a transaction manager external to a resource manager. Local transactions are managed internal to a resource manager and involve no external transaction managers.

Connector Validation 

Select the Enabled checkbox if you want the connection pool to be validated before being passed on to the application.  

Before creating a connection pool, you need to deploy the connector module (resource adapter) associated with the pool. You can deploy a connector module using the Admin Console or by using the asadmin command. For information about the asadmincommand see, asadmin(1M)

To view, create, edit, or delete connection pools in the Admin Console, click Resources > Connectors > Connector Connection Pools. You can add properties (a name-value pair) to a connector connection pool. Alternatively, you can use the following asadmin commands to create and delete connection pools: