org.apache.activemq.pool
Class XaPooledConnectionFactory

java.lang.Object
  extended by org.apache.activemq.pool.PooledConnectionFactory
      extended by org.apache.activemq.pool.XaPooledConnectionFactory
All Implemented Interfaces:
ConnectionFactory, Service
Direct Known Subclasses:
JcaPooledConnectionFactory

public class XaPooledConnectionFactory
extends PooledConnectionFactory

A pooled connection factory that automatically enlists sessions in the current active XA transaction if any.


Constructor Summary
XaPooledConnectionFactory()
           
XaPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)
           
XaPooledConnectionFactory(String brokerURL)
           
 
Method Summary
protected  ConnectionPool createConnectionPool(ActiveMQConnection connection)
          Delegate that creates each instance of an ConnectionPool object.
 TransactionManager getTransactionManager()
           
 void setTransactionManager(TransactionManager transactionManager)
           
 
Methods inherited from class org.apache.activemq.pool.PooledConnectionFactory
clear, createConnection, createConnection, createConnection, getConnectionFactory, getExpiryTimeout, getIdleTimeout, getMaxConnections, getMaximumActive, getMaximumActiveSessionPerConnection, getNumConnections, getPoolFactory, isBlockIfSessionPoolIsFull, isCreateConnectionOnStartup, setBlockIfSessionPoolIsFull, setConnectionFactory, setCreateConnectionOnStartup, setExpiryTimeout, setIdleTimeout, setMaxConnections, setMaximumActive, setMaximumActiveSessionPerConnection, setPoolFactory, setTimeBetweenExpirationCheckMillis, setTimeBetweenExpirationCheckMillis, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XaPooledConnectionFactory

public XaPooledConnectionFactory()

XaPooledConnectionFactory

public XaPooledConnectionFactory(ActiveMQConnectionFactory connectionFactory)

XaPooledConnectionFactory

public XaPooledConnectionFactory(String brokerURL)
Method Detail

getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

createConnectionPool

protected ConnectionPool createConnectionPool(ActiveMQConnection 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.


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.