org.apache.activemq.jms.pool
Class XaPooledConnectionFactory
java.lang.Object
org.apache.activemq.jms.pool.PooledConnectionFactory
org.apache.activemq.jms.pool.XaPooledConnectionFactory
- All Implemented Interfaces:
- Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, ObjectFactory
- Direct Known Subclasses:
- JcaPooledConnectionFactory
public class XaPooledConnectionFactory
- extends PooledConnectionFactory
- implements ObjectFactory, Serializable, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory
A pooled connection factory that automatically enlists
sessions in the current active XA transaction if any.
- See Also:
- Serialized Form
| Methods inherited from class org.apache.activemq.jms.pool.PooledConnectionFactory |
clear, createConnection, createConnection, createConnection, getConnectionFactory, getConnectionsPool, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActiveSessionPerConnection, getNumConnections, getTimeBetweenExpirationCheckMillis, initConnectionsPool, isBlockIfSessionPoolIsFull, isCreateConnectionOnStartup, newPooledConnection, setBlockIfSessionPoolIsFull, setConnectionFactory, setCreateConnectionOnStartup, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActiveSessionPerConnection, setTimeBetweenExpirationCheckMillis, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jms.ConnectionFactory |
createConnection, createConnection |
XaPooledConnectionFactory
public XaPooledConnectionFactory()
getTransactionManager
public TransactionManager getTransactionManager()
setTransactionManager
public void setTransactionManager(TransactionManager transactionManager)
createConnectionPool
protected ConnectionPool createConnectionPool(javax.jms.Connection connection)
- Description copied from class:
PooledConnectionFactory
- Delegate that creates each instance of an ConnectionPool object. Subclasses can override
this method to customize the type of connection pool returned.
- Overrides:
createConnectionPool in class PooledConnectionFactory
- Returns:
- instance of a new ConnectionPool.
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws Exception
- Specified by:
getObjectInstance in interface ObjectFactory
- Throws:
Exception
getTmJndiName
public String getTmJndiName()
setTmJndiName
public void setTmJndiName(String tmJndiName)
isTmFromJndi
public boolean isTmFromJndi()
setTmFromJndi
public void setTmFromJndi(boolean tmFromJndi)
- Allow transaction manager resolution from JNDI (ee deployment)
- Parameters:
tmFromJndi -
createQueueConnection
public javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
- Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
- Throws:
javax.jms.JMSException
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(String userName,
String password)
throws javax.jms.JMSException
- Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
- Throws:
javax.jms.JMSException
createTopicConnection
public javax.jms.TopicConnection createTopicConnection()
throws javax.jms.JMSException
- Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
- Throws:
javax.jms.JMSException
createTopicConnection
public javax.jms.TopicConnection createTopicConnection(String userName,
String password)
throws javax.jms.JMSException
- Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
- Throws:
javax.jms.JMSException
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.