public class PoolBySubject extends AbstractPrefillPool
| Constructor and Description |
|---|
PoolBySubject(javax.resource.spi.ManagedConnectionFactory mcf,
PoolConfiguration pc,
boolean noTxSeparatePools,
boolean sharable)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.security.auth.Subject |
createSubject(org.jboss.security.SubjectFactory subjectFactory,
java.lang.String securityDomain,
javax.resource.spi.ManagedConnectionFactory mcf)
Create a subject
|
protected java.lang.Object |
getKey(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
boolean separateNoTx)
Retrieve the key for this request.
|
CoreLogger |
getLogger()
Get the logger
|
boolean |
testConnection()
Test if a connection can be obtained
|
boolean |
testConnection(javax.resource.spi.ConnectionRequestInfo cri,
javax.security.auth.Subject subject)
Test if a connection can be obtained
|
prefillemptyManagedConnectionPool, findConnectionListener, findConnectionListener, flush, flush, flush, getCapacity, getConnection, getConnectionManager, getManagedConnectionFactory, getManagedConnectionPool, getManagedConnectionPools, getName, getStatistics, getTransactionIntegration, getTransactionManager, getTransactionSynchronizationRegistry, internalTestConnection, isFIFO, isSharable, isShutdown, returnConnection, setCapacity, setConnectionManager, setName, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitemptyManagedConnectionPool, findConnectionListener, findConnectionListener, getCapacity, getConnection, getManagedConnectionFactory, isFIFO, isSharable, isShutdown, returnConnection, setCapacity, setConnectionManager, setName, shutdownpublic PoolBySubject(javax.resource.spi.ManagedConnectionFactory mcf,
PoolConfiguration pc,
boolean noTxSeparatePools,
boolean sharable)
mcf - managed connection factorypc - pool configurationnoTxSeparatePools - notx seperate poolsharable - Are the connections sharableprotected java.lang.Object getKey(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
boolean separateNoTx)
throws javax.resource.ResourceException
getKey in class AbstractPoolsubject - the subjectcri - the connection request informationseparateNoTx - separateNoTxjavax.resource.ResourceException - for any errorpublic boolean testConnection()
testConnection in interface PooltestConnection in class AbstractPoolpublic boolean testConnection(javax.resource.spi.ConnectionRequestInfo cri,
javax.security.auth.Subject subject)
testConnection in interface PooltestConnection in class AbstractPoolcri - Optional connection request info objectsubject - Optional subjectprotected javax.security.auth.Subject createSubject(org.jboss.security.SubjectFactory subjectFactory,
java.lang.String securityDomain,
javax.resource.spi.ManagedConnectionFactory mcf)
subjectFactory - The subject factorysecurityDomain - The security domainmcf - The managed connection factorynull in case of an errorpublic CoreLogger getLogger()
getLogger in class AbstractPoolCopyright © 2013 IronJacamar (http://www.ironjacamar.org)