Class 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.
    • Constructor Detail

      • XaConnectionPool

        public XaConnectionPool​(javax.jms.Connection connection,
                                javax.transaction.TransactionManager transactionManager)
    • Method Detail

      • makeSession

        protected javax.jms.Session makeSession​(SessionKey key)
                                         throws javax.jms.JMSException
        Overrides:
        makeSession in class ConnectionPool
        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