org.apache.activemq.pool
Class XaConnectionPool

java.lang.Object
  extended by org.apache.activemq.pool.ConnectionPool
      extended by org.apache.activemq.pool.XaConnectionPool
Direct Known Subclasses:
JcaConnectionPool

public class XaConnectionPool
extends ConnectionPool

An XA-aware connection pool. When a session is created and an xa transaction is active, the session will automatically be enlisted in the current transaction.

Author:
gnodet

Nested Class Summary
protected  class XaConnectionPool.Synchronization
           
 
Constructor Summary
XaConnectionPool(ActiveMQConnection connection, ObjectPoolFactory poolFactory, TransactionManager transactionManager)
          Deprecated.  
XaConnectionPool(ActiveMQConnection connection, TransactionManager transactionManager)
           
 
Method Summary
 Session createSession(boolean transacted, int ackMode)
           
protected  XAResource createXaResource(PooledSession session)
           
 
Methods inherited from class org.apache.activemq.pool.ConnectionPool
close, decrementReferenceCount, expiredCheck, getConnection, getExpiryTimeout, getIdleTimeout, getMaximumActiveSessionPerConnection, getNumActiveSessions, getNumIdleSessions, getNumSessions, incrementReferenceCount, isBlockIfSessionPoolIsFull, setBlockIfSessionPoolIsFull, setExpiryTimeout, setIdleTimeout, setMaximumActiveSessionPerConnection, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XaConnectionPool

public XaConnectionPool(ActiveMQConnection connection,
                        TransactionManager transactionManager)

XaConnectionPool

public XaConnectionPool(ActiveMQConnection connection,
                        ObjectPoolFactory poolFactory,
                        TransactionManager transactionManager)
Deprecated. 

Method Detail

createSession

public Session createSession(boolean transacted,
                             int ackMode)
                      throws JMSException
Overrides:
createSession in class ConnectionPool
Throws:
JMSException

createXaResource

protected XAResource createXaResource(PooledSession session)
                               throws JMSException
Throws:
JMSException


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