Class XAQueueSession

  • All Implemented Interfaces:
    jakarta.jms.Session, jakarta.jms.XAQueueSession, jakarta.jms.XASession, AutoCloseable, Runnable

    public class XAQueueSession
    extends XASession
    implements jakarta.jms.XAQueueSession
    Implements the jakarta.jms.XAQueueSession interface.
    • Constructor Detail

      • XAQueueSession

        XAQueueSession​(XAQueueConnection cnx,
                       QueueSession qs,
                       XAResourceMngr rm)
                throws jakarta.jms.JMSException
        Constructs an XAQueueSession instance.
        Parameters:
        cnx - The connection the session belongs to.
        rm - The resource manager.
        Throws:
        jakarta.jms.JMSException - Actually never thrown.
    • Method Detail

      • toString

        public String toString()
        Returns a String image of this session.
        Overrides:
        toString in class XASession
      • getQueueSession

        public jakarta.jms.QueueSession getQueueSession()
                                                 throws jakarta.jms.JMSException
        API method. Gets the queue session associated with this XAQueueSession.
        Specified by:
        getQueueSession in interface jakarta.jms.XAQueueSession
        Returns:
        the queue session object.
        Throws:
        jakarta.jms.JMSException - if an internal error occurs.
      • createSender

        public jakarta.jms.QueueSender createSender​(Queue queue)
                                             throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Throws:
        jakarta.jms.JMSException
      • createReceiver

        public jakarta.jms.QueueReceiver createReceiver​(Queue queue,
                                                        String selector)
                                                 throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Throws:
        jakarta.jms.JMSException
      • createReceiver

        public jakarta.jms.QueueReceiver createReceiver​(Queue queue)
                                                 throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Throws:
        jakarta.jms.JMSException