Class WmQueueSessionImpl

  • All Implemented Interfaces:
    WmSession, java.lang.Runnable, javax.jms.QueueSession, javax.jms.Session

    public class WmQueueSessionImpl
    extends WmSessionImpl
    implements javax.jms.QueueSession
    • Constructor Detail

      • WmQueueSessionImpl

        protected WmQueueSessionImpl​(WmConnectionImpl connection,
                                     boolean transacted,
                                     boolean isXA,
                                     int acknowledgeMode)
                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • createDurableSubscriber

        public javax.jms.TopicSubscriber createDurableSubscriber​(javax.jms.Topic topic,
                                                                 java.lang.String name)
                                                          throws javax.jms.JMSException
        Thows an IllegalStateException.
        Specified by:
        createDurableSubscriber in interface javax.jms.Session
        Overrides:
        createDurableSubscriber in class WmSessionImpl
        Parameters:
        topic - the non-temporary Topic to subscribe to
        name - the name used to identify this subscription
        Throws:
        javax.jms.JMSException - if the session fails to create a subscriber due to some internal error.
        javax.jms.InvalidDestinationException - if an invalid topic is specified.
      • createDurableSubscriber

        public javax.jms.TopicSubscriber createDurableSubscriber​(javax.jms.Topic topic,
                                                                 java.lang.String name,
                                                                 java.lang.String messageSelector,
                                                                 boolean noLocal)
                                                          throws javax.jms.JMSException
        Thows an IllegalStateException.
        Specified by:
        createDurableSubscriber in interface javax.jms.Session
        Overrides:
        createDurableSubscriber in class WmSessionImpl
        Parameters:
        topic - the non-temporary Topic to subscribe to
        name - the name used to identify this subscription
        messageSelector - only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.
        noLocal - if set, inhibits the delivery of messages published by its own connection
        Throws:
        javax.jms.JMSException - if the session fails to create a subscriber due to some internal error.
        javax.jms.InvalidDestinationException - if an invalid topic is specified.
        javax.jms.InvalidSelectorException - if the message selector is invalid.
      • createTemporaryTopic

        public javax.jms.TemporaryTopic createTemporaryTopic()
                                                      throws javax.jms.JMSException
        Thows an IllegalStateException.
        Specified by:
        createTemporaryTopic in interface javax.jms.Session
        Overrides:
        createTemporaryTopic in class WmSessionImpl
        Returns:
        a temporary topic identity
        Throws:
        javax.jms.JMSException - if the session fails to create a temporary topic due to some internal error.
      • createTopic

        public javax.jms.Topic createTopic​(java.lang.String topicName)
                                    throws javax.jms.JMSException
        Thows an IllegalStateException.
        Specified by:
        createTopic in interface javax.jms.Session
        Overrides:
        createTopic in class WmSessionImpl
        Parameters:
        topicName - the name of this Topic
        Returns:
        a Topic with the given name
        Throws:
        javax.jms.JMSException - if the session fails to create a topic due to some internal error.
      • unsubscribe

        public void unsubscribe​(java.lang.String name)
                         throws javax.jms.JMSException
        Thows an IllegalStateException.
        Specified by:
        unsubscribe in interface javax.jms.Session
        Overrides:
        unsubscribe in class WmSessionImpl
        Parameters:
        name - the name used to identify this subscription
        Throws:
        javax.jms.JMSException - if the session fails to unsubscribe to the durable subscription due to some internal error.
        javax.jms.InvalidDestinationException - if an invalid subscription name is specified.