public class PoolBySubject extends AbstractPrefillPool
Constructor and Description |
---|
PoolBySubject(javax.resource.spi.ManagedConnectionFactory mcf,
PoolConfiguration pc,
boolean noTxSeparatePools)
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
|
prefill
emptyManagedConnectionPool, flush, flush, getConnection, getConnectionListenerFactory, getManagedConnectionFactory, getManagedConnectionPool, getName, getStatistics, getTransactionIntegration, getTransactionManager, getTransactionSynchronizationRegistry, internalTestConnection, returnConnection, setConnectionListenerFactory, setName, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
emptyManagedConnectionPool, getConnection, getManagedConnectionFactory, returnConnection, setConnectionListenerFactory, setName, shutdown
flush, flush, getName, getStatistics
public PoolBySubject(javax.resource.spi.ManagedConnectionFactory mcf, PoolConfiguration pc, boolean noTxSeparatePools)
mcf
- managed connection factorypc
- pool configurationnoTxSeparatePools
- notx seperate poolprotected java.lang.Object getKey(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri, boolean separateNoTx) throws javax.resource.ResourceException
getKey
in class AbstractPool
subject
- the subjectcri
- the connection request informationseparateNoTx
- separateNoTxjavax.resource.ResourceException
- for any errorpublic boolean testConnection()
testConnection
in interface Pool
testConnection
in class AbstractPool
protected 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 AbstractPool
Copyright ? 2008-2009 Red Hat Middleware LLC (http://www.jboss.com/)