public class PoolableManagedConnectionFactory extends PoolableConnectionFactory
PoolableConnectionFactory that creates PoolableManagedConnections.| Constructor and Description |
|---|
PoolableManagedConnectionFactory(XAConnectionFactory connFactory,
ObjectName dataSourceJmxName)
Create a PoolableManagedConnectionFactory and attach it to a connection pool.
|
| Modifier and Type | Method and Description |
|---|---|
PooledObject<PoolableConnection> |
makeObject()
Uses the configured XAConnectionFactory to create a
PoolableManagedConnection. |
activateObject, destroyObject, getCacheState, getConnectionFactory, getDefaultQueryTimeout, getMaxOpenPreparedStatements, getPool, getPoolStatements, initializeConnection, isEnableAutoCommitOnReturn, isRollbackOnReturn, passivateObject, setCacheState, setConnectionInitSql, setDefaultAutoCommit, setDefaultCatalog, setDefaultQueryTimeout, setDefaultReadOnly, setDefaultTransactionIsolation, setEnableAutoCommitOnReturn, setMaxConnLifetimeMillis, setMaxOpenPrepatedStatements, setPool, setPoolStatements, setRollbackOnReturn, setValidationQuery, setValidationQueryTimeout, validateConnection, validateObjectpublic PoolableManagedConnectionFactory(XAConnectionFactory connFactory, ObjectName dataSourceJmxName)
connFactory - XAConnectionFactorypublic PooledObject<PoolableConnection> makeObject() throws Exception
PoolableManagedConnection.
Throws IllegalStateException if the connection factory returns null.
Also initializes the connection using configured initialization sql (if provided)
and sets up a prepared statement pool associated with the PoolableManagedConnection
if statement pooling is enabled.makeObject in interface PooledObjectFactory<PoolableConnection>makeObject in class PoolableConnectionFactoryExceptionCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.