| org.jboss.resource.connectionmanager.BaseConnectionManager2
All known Subclasses: org.jboss.resource.connectionmanager.NoTxConnectionManager, org.jboss.resource.connectionmanager.TxConnectionManager,
BaseConnectionManager2 | abstract public class BaseConnectionManager2 extends ServiceMBeanSupport implements BaseConnectionManager2MBean,ConnectionCacheListener,ConnectionListenerFactory,TransactionTimeoutConfiguration(Code) | | The BaseConnectionManager2 is an abstract base class for JBoss ConnectionManager
implementations. It includes functionality to obtain managed connections from
a ManagedConnectionPool mbean, find the Subject from a SubjectSecurityDomain,
and interact with the CachedConnectionManager for connections held over
transaction and method boundaries. Important mbean references are to a
ManagedConnectionPool supplier (typically a JBossManagedConnectionPool), and a
RARDeployment representing the ManagedConnectionFactory.
author: David Jencks author: Erwin Guib author: Adrian Brock author: Weston Price version: $Revision: 57189 $ |
Inner Class :abstract protected class BaseConnectionEventListener implements ConnectionListener | |
Inner Class :public static class ConnectionManagerProxy implements ConnectionManager,Serializable,TransactionTimeoutConfiguration | |
STOPPING_NOTIFICATION | final public static String STOPPING_NOTIFICATION(Code) | | |
securityDomain | protected SubjectSecurityManager securityDomain(Code) | | |
securityDomainJndiName | protected String securityDomainJndiName(Code) | | |
trace | protected boolean trace(Code) | | |
BaseConnectionManager2 | public BaseConnectionManager2()(Code) | | Default BaseConnectionManager2 managed constructor for use by subclass mbeans.
|
BaseConnectionManager2 | public BaseConnectionManager2(CachedConnectionManager ccm, ManagedConnectionPool poolingStrategy)(Code) | | Creates a new BaseConnectionManager2 instance.
for TESTING ONLY! not a managed operation.
Parameters: ccm - a CachedConnectionManager value Parameters: poolingStrategy - a ManagedConnectionPool value |
allocateConnection | public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri) throws ResourceException(Code) | | |
disconnect | public void disconnect(Collection crs, Set unsharableResources) throws ResourceException(Code) | | |
disconnectManagedConnection | protected void disconnectManagedConnection(ConnectionListener cl)(Code) | | Invoked when a managed connection is no longer associated
Parameters: cl - the managed connection |
getConnectionCount | public int getConnectionCount()(Code) | | |
getJaasSecurityManagerService | public ObjectName getJaasSecurityManagerService()(Code) | | |
getManagedConnection | public ConnectionListener getManagedConnection(Subject subject, ConnectionRequestInfo cri) throws ResourceException(Code) | | Public for use in testing pooling functionality by itself.
called by both allocateConnection and reconnect.
Parameters: subject - a Subject value Parameters: cri - a ConnectionRequestInfo value a ManagedConnection value exception: ResourceException - if an error occurs |
getManagedConnection | protected ConnectionListener getManagedConnection(Transaction transaction, Subject subject, ConnectionRequestInfo cri) throws ResourceException(Code) | | Get the managed connection from the pool
Parameters: transaction - the transaction for track by transaction Parameters: subject - the subject Parameters: cri - the ConnectionRequestInfo a managed connection exception: ResourceException - if an error occurs |
getManagedConnectionFactory | public ManagedConnectionFactory getManagedConnectionFactory()(Code) | | |
getSecurityDomainJndiName | public String getSecurityDomainJndiName()(Code) | | |
getTimeLeftBeforeTransactionTimeout | public long getTimeLeftBeforeTransactionTimeout(boolean errorRollback) throws RollbackException(Code) | | |
getTransactionManagerInstance | public TransactionManager getTransactionManagerInstance()(Code) | | |
getTransactionTimeout | public int getTransactionTimeout() throws SystemException(Code) | | |
isTransactional | public boolean isTransactional()(Code) | | |
managedConnectionDisconnected | protected void managedConnectionDisconnected(ConnectionListener cl) throws ResourceException(Code) | | For polymorphism.
Do not invoke directly use disconnectManagedConnection
which does the relevent exception handling
|
managedConnectionReconnected | protected void managedConnectionReconnected(ConnectionListener cl) throws ResourceException(Code) | | For polymorphism.
Do not invoke directly use reconnectManagedConnection
which does the relevent exception handling
|
reconnect | public void reconnect(Collection conns, Set unsharableResources) throws ResourceException(Code) | | |
reconnectManagedConnection | protected void reconnectManagedConnection(ConnectionListener cl) throws ResourceException(Code) | | Invoked to reassociate a managed connection
Parameters: cl - the managed connection |
rethrowAsResourceException | protected static void rethrowAsResourceException(String message, Throwable t) throws ResourceException(Code) | | Rethrow a throwable as resource exception
|
setCachedConnectionManager | public void setCachedConnectionManager(ObjectName ccmName)(Code) | | |
setJaasSecurityManagerService | public void setJaasSecurityManagerService(ObjectName jaasSecurityManagerService)(Code) | | |
setManagedConnectionPool | public void setManagedConnectionPool(ObjectName newManagedConnectionPool)(Code) | | |
setSecurityDomainJndiName | public void setSecurityDomainJndiName(String securityDomainJndiName)(Code) | | |
transactionStarted | public void transactionStarted(Collection conns) throws SystemException(Code) | | |
|
|