org.apache.activemq.pool
Class XaConnectionPool
java.lang.Object
org.apache.activemq.pool.ConnectionPool
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
Constructor Summary |
XaConnectionPool(ActiveMQConnection connection,
org.apache.commons.pool.ObjectPoolFactory poolFactory,
javax.transaction.TransactionManager transactionManager)
|
Methods inherited from class org.apache.activemq.pool.ConnectionPool |
close, createSessionPool, 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(ActiveMQConnection connection,
org.apache.commons.pool.ObjectPoolFactory poolFactory,
javax.transaction.TransactionManager transactionManager)
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 javax.transaction.xa.XAResource createXaResource(PooledSession session)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
Copyright © 2005-2011. All Rights Reserved.