public class XaPooledConnectionFactory extends PooledConnectionFactory implements ObjectFactory, Serializable
connectionFactory, stopped
Constructor and Description |
---|
XaPooledConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
protected Connection |
createConnection(ConnectionKey key) |
protected ConnectionPool |
createConnectionPool(Connection connection)
Delegate that creates each instance of an ConnectionPool object.
|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment) |
String |
getTmJndiName() |
TransactionManager |
getTransactionManager() |
boolean |
isTmFromJndi() |
void |
setConnectionFactory(Object toUse)
Sets the ConnectionFactory used to create new pooled Connections.
|
void |
setTmFromJndi(boolean tmFromJndi)
Allow transaction manager resolution from JNDI (ee deployment)
|
void |
setTmJndiName(String tmJndiName) |
void |
setTransactionManager(TransactionManager transactionManager) |
clear, createConnection, createConnection, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, getBlockIfSessionPoolIsFullTimeout, getConnectionFactory, getConnectionsPool, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActiveSessionPerConnection, getNumConnections, getTimeBetweenExpirationCheckMillis, initConnectionsPool, isBlockIfSessionPoolIsFull, isCreateConnectionOnStartup, isReconnectOnException, isUseAnonymousProducers, newPooledConnection, populateProperties, setBlockIfSessionPoolIsFull, setBlockIfSessionPoolIsFullTimeout, setCreateConnectionOnStartup, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActiveSessionPerConnection, setReconnectOnException, setTimeBetweenExpirationCheckMillis, setUseAnonymousProducers, start, stop
public XaPooledConnectionFactory()
public TransactionManager getTransactionManager()
public void setTransactionManager(TransactionManager transactionManager)
public void setConnectionFactory(Object toUse)
PooledConnectionFactory
PooledConnectionFactory.clear()
the pooled Connections.setConnectionFactory
in class PooledConnectionFactory
toUse
- The factory to use to create pooled Connections.protected Connection createConnection(ConnectionKey key) throws JMSException
createConnection
in class PooledConnectionFactory
JMSException
protected ConnectionPool createConnectionPool(Connection connection)
PooledConnectionFactory
createConnectionPool
in class PooledConnectionFactory
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance
in interface ObjectFactory
Exception
public String getTmJndiName()
public void setTmJndiName(String tmJndiName)
public boolean isTmFromJndi()
public void setTmFromJndi(boolean tmFromJndi)
tmFromJndi
- Copyright © 2005–2017 FuseSource, Corp.. All rights reserved.