Class OutboundQueueSession

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

    public class OutboundQueueSession
    extends OutboundSession
    implements jakarta.jms.QueueSession
    An OutboundQueueSession instance wraps a JMS QueueSession (XA or not) for a component involved in PTP outbound messaging.
    • Field Detail

      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
    • Constructor Detail

      • OutboundQueueSession

        OutboundQueueSession​(jakarta.jms.Session sess,
                             OutboundConnection cnx)
        Constructs an OutboundQueueSession instance.
      • OutboundQueueSession

        OutboundQueueSession​(jakarta.jms.Session sess,
                             OutboundConnection cnx,
                             boolean transacted)
        Constructs an OutboundQueueSession instance.
    • Method Detail

      • createSender

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

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

        public jakarta.jms.QueueReceiver createReceiver​(jakarta.jms.Queue queue)
                                                 throws jakarta.jms.JMSException
        Delegates the call to the wrapped JMS session.
        Specified by:
        createReceiver in interface jakarta.jms.QueueSession
        Throws:
        jakarta.jms.JMSException
      • createDurableSubscriber

        public jakarta.jms.TopicSubscriber createDurableSubscriber​(jakarta.jms.Topic topic,
                                                                   String name,
                                                                   String selector,
                                                                   boolean noLocal)
                                                            throws jakarta.jms.JMSException
        API method.
        Specified by:
        createDurableSubscriber in interface jakarta.jms.Session
        Overrides:
        createDurableSubscriber in class OutboundSession
        Throws:
        jakarta.jms.IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • createDurableSubscriber

        public jakarta.jms.TopicSubscriber createDurableSubscriber​(jakarta.jms.Topic topic,
                                                                   String name)
                                                            throws jakarta.jms.JMSException
        API method.
        Specified by:
        createDurableSubscriber in interface jakarta.jms.Session
        Overrides:
        createDurableSubscriber in class OutboundSession
        Throws:
        jakarta.jms.IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • createTopic

        public jakarta.jms.Topic createTopic​(String topicName)
                                      throws jakarta.jms.JMSException
        API method.
        Specified by:
        createTopic in interface jakarta.jms.Session
        Overrides:
        createTopic in class OutboundSession
        Throws:
        jakarta.jms.IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • createTemporaryTopic

        public jakarta.jms.TemporaryTopic createTemporaryTopic()
                                                        throws jakarta.jms.JMSException
        API method.
        Specified by:
        createTemporaryTopic in interface jakarta.jms.Session
        Overrides:
        createTemporaryTopic in class OutboundSession
        Throws:
        jakarta.jms.IllegalStateException - Systematically.
        jakarta.jms.JMSException
      • unsubscribe

        public void unsubscribe​(String name)
                         throws jakarta.jms.JMSException
        API method.
        Specified by:
        unsubscribe in interface jakarta.jms.Session
        Overrides:
        unsubscribe in class OutboundSession
        Throws:
        jakarta.jms.IllegalStateException - Systematically.
        jakarta.jms.JMSException