Package org.apache.activemq.jms.pool
Class XaConnectionPool
- java.lang.Object
-
- org.apache.activemq.jms.pool.ConnectionPool
-
- org.apache.activemq.jms.pool.XaConnectionPool
-
- All Implemented Interfaces:
ExceptionListener
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
XaConnectionPool.Synchronization
-
Field Summary
-
Fields inherited from class org.apache.activemq.jms.pool.ConnectionPool
connection
-
-
Constructor Summary
Constructors Constructor Description XaConnectionPool(Connection connection, TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session
createSession(boolean transacted, int ackMode)
protected XAResource
createXaResource(PooledSession session)
protected Session
makeSession(SessionKey key)
-
Methods inherited from class org.apache.activemq.jms.pool.ConnectionPool
close, decrementReferenceCount, expiredCheck, getBlockIfSessionPoolIsFullTimeout, getConnection, getExpiryTimeout, getIdleTimeout, getMaximumActiveSessionPerConnection, getNumActiveSessions, getNumIdleSessions, getNumSessions, incrementReferenceCount, isBlockIfSessionPoolIsFull, isReconnectOnException, isUseAnonymousProducers, onException, setBlockIfSessionPoolIsFull, setBlockIfSessionPoolIsFullTimeout, setExpiryTimeout, setHasExpired, setIdleTimeout, setMaximumActiveSessionPerConnection, setReconnectOnException, setUseAnonymousProducers, start, toString, unWrap, wrap
-
-
-
-
Constructor Detail
-
XaConnectionPool
public XaConnectionPool(Connection connection, TransactionManager transactionManager)
-
-
Method Detail
-
makeSession
protected Session makeSession(SessionKey key) throws JMSException
- Overrides:
makeSession
in classConnectionPool
- Throws:
JMSException
-
createSession
public Session createSession(boolean transacted, int ackMode) throws JMSException
- Overrides:
createSession
in classConnectionPool
- Throws:
JMSException
-
createXaResource
protected XAResource createXaResource(PooledSession session) throws JMSException
- Throws:
JMSException
-
-