Chapter 18. Pooling
18.1. Strategy
JCA uses a
ManagedConnectionPool
to perform the pooling. The ManagedConnectionPool
is made up of subpools depending upon the strategy chosen and other pooling parameters.
XML
|
mbean
|
Internal Name
|
Description
|
---|---|---|---|
|
ByNothing
|
OnePool
|
A single pool of equivalent connections
|
<application-managed-security/>
|
ByApplication
|
PoolByCRI
|
Use the connection properties from allocateConnection()
|
<security-domain/>
|
ByContainer
|
PoolBySubject
|
A pool per Subject, e.g. preconfigured or EJB/Web log in subjects
|
<security-domain-and-application/>
|
ByContainerAndApplicaton
|
PoolBySubjectAndCri
|
A per Subject and connection property combination
|
For <security-domain-and-application/> the
Subject
always overrides any user/password from createConnection(user, password) in the CRI:
( ConnectionRequestInfo )