org.apache.aries.transaction.jms.internal
Class XaConnectionPool
java.lang.Object
org.apache.aries.transaction.jms.internal.ConnectionPool
org.apache.aries.transaction.jms.internal.XaConnectionPool
- Direct Known Subclasses:
- RecoverableConnectionPool
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
| Methods inherited from class org.apache.aries.transaction.jms.internal.ConnectionPool |
close, createSessionPool, createXaSession, decrementReferenceCount, expiredCheck, getConnection, getExpiryTimeout, getIdleTimeout, incrementReferenceCount, setExpiryTimeout, setIdleTimeout, start |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XaConnectionPool
public XaConnectionPool(javax.jms.XAConnection connection,
org.apache.commons.pool.ObjectPoolFactory poolFactory,
TransactionManager transactionManager)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
createSession
public javax.jms.Session createSession(boolean transacted,
int ackMode)
throws javax.jms.JMSException
- Overrides:
createSession in class ConnectionPool
- Throws:
javax.jms.JMSException
createXaResource
protected XAResource createXaResource(PooledSession session)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.