Package org.messaginghub.pooled.jms.pool
Class PooledXAConnection
- java.lang.Object
-
- org.messaginghub.pooled.jms.pool.PooledConnection
-
- org.messaginghub.pooled.jms.pool.PooledXAConnection
-
- All Implemented Interfaces:
javax.jms.ExceptionListener
- Direct Known Subclasses:
PooledJCAConnection
public class PooledXAConnection extends PooledConnection
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
PooledXAConnection.Synchronization
-
Field Summary
-
Fields inherited from class org.messaginghub.pooled.jms.pool.PooledConnection
connection
-
-
Constructor Summary
Constructors Constructor Description PooledXAConnection(javax.jms.Connection connection, javax.transaction.TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.Session
createSession(boolean transacted, int ackMode)
protected XAResource
createXaResource(JmsPoolSession session)
protected javax.jms.Session
makeSession(PooledSessionKey key)
-
Methods inherited from class org.messaginghub.pooled.jms.pool.PooledConnection
checkClientJMSVersionSupport, checkClientJMSVersionSupport, close, decrementReferenceCount, getBlockIfSessionPoolIsFullTimeout, getConnection, getExplicitProducerCacheSize, getIdleTimeout, getMaxSessionsPerConnection, getNumActiveSessions, getNumIdleSessions, getNumSessions, getParentExceptionListener, idleTimeoutCheck, incrementReferenceCount, isBlockIfSessionPoolIsFull, isClosed, isJMSVersionSupported, isUseAnonymousProducers, onException, setBlockIfSessionPoolIsFull, setBlockIfSessionPoolIsFullTimeout, setExplicitProducerCacheSize, setHasExpired, setIdleTimeout, setMaxSessionsPerConnection, setParentExceptionListener, setUseAnonymousProducers, start, toString, unWrap, wrap
-
-
-
-
Method Detail
-
makeSession
protected javax.jms.Session makeSession(PooledSessionKey key) throws javax.jms.JMSException
- Overrides:
makeSession
in classPooledConnection
- Throws:
javax.jms.JMSException
-
createSession
public javax.jms.Session createSession(boolean transacted, int ackMode) throws javax.jms.JMSException
- Overrides:
createSession
in classPooledConnection
- Throws:
javax.jms.JMSException
-
createXaResource
protected XAResource createXaResource(JmsPoolSession session) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-