Class XATopicSession

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

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

      • XATopicSession

        XATopicSession​(XATopicConnection cnx,
                       TopicSession ts,
                       XAResourceMngr rm)
                throws jakarta.jms.JMSException
        Constructs an XATopicSession 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
      • getTopicSession

        public jakarta.jms.TopicSession getTopicSession()
                                                 throws jakarta.jms.JMSException
        API method. Gets the topic session associated with this XATopicSession.
        Specified by:
        getTopicSession in interface jakarta.jms.XATopicSession
        Returns:
        the topic session object.
        Throws:
        jakarta.jms.JMSException
      • createSubscriber

        public jakarta.jms.TopicSubscriber createSubscriber​(jakarta.jms.Topic topic,
                                                            String selector,
                                                            boolean noLocal)
                                                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Throws:
        jakarta.jms.JMSException
      • createSubscriber

        public jakarta.jms.TopicSubscriber createSubscriber​(jakarta.jms.Topic topic)
                                                     throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Throws:
        jakarta.jms.JMSException