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:
javax.jms.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 classXaConnectionPool.Synchronization
-
Field Summary
-
Fields inherited from class org.apache.activemq.jms.pool.ConnectionPool
connection
-
-
Constructor Summary
Constructors Constructor Description XaConnectionPool(javax.jms.Connection connection, javax.transaction.TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.SessioncreateSession(boolean transacted, int ackMode)protected XAResourcecreateXaResource(PooledSession session)protected javax.jms.SessionmakeSession(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
-
-
-
-
Method Detail
-
makeSession
protected javax.jms.Session makeSession(SessionKey key) throws javax.jms.JMSException
- Overrides:
makeSessionin classConnectionPool- Throws:
javax.jms.JMSException
-
createSession
public javax.jms.Session createSession(boolean transacted, int ackMode) throws javax.jms.JMSException- Overrides:
createSessionin classConnectionPool- Throws:
javax.jms.JMSException
-
createXaResource
protected XAResource createXaResource(PooledSession session) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-