jrun.connector
Class ConnectionManagerImpl
jrun.connector.ConnectionManagerImpl
- All Implemented Interfaces:
- java.io.Serializable
- public class ConnectionManagerImpl
- implements java.io.Serializable
Implementation of javax.resource.spi.ConnectionManager Interface
One ConnectionManager instance per ManagedConnectionFactory instance
- Author:
- Ramesh Natarajan
- See Also:
- , Serialized Form
ConnectionManagerImpl
public ConnectionManagerImpl(javax.resource.spi.ManagedConnectionFactory mcf,
ResourceadapterMetaData resourceAdapterMetaData,
ManagedconnectionfactoryInstanceMetaData managedconnectionfactoryInstanceMetaData,
Logger logger)
- Called by ConnectionFactory. Checks for existence of a similar connection in the pool
calls MangedConnectionFactory.createInstance if not present in the pool.
Gets a ManagedConnection object and returns the Connection handle obtained from the ManagedConnection object
allocateConnection
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
throws javax.resource.ResourceException
getTransactionManager
public final javax.transaction.TransactionManager getTransactionManager()
getSecurityManager
public final JRunSecurityManager getSecurityManager()
setTransactionManager
public final void setTransactionManager(javax.transaction.TransactionManager txm)
setSecurityManager
public final void setSecurityManager(JRunSecurityManager jrsm)
getJndiName
public java.lang.String getJndiName()
getCpool
public ConnectionPool getCpool()
getCurrentXid
public javax.transaction.xa.Xid getCurrentXid()
setConnInactive
public void setConnInactive(JRunConnectionWrapper jrcw)
Copyright � 2002 Macromedia Corporation. All Rights Reserved.