Class WmXAQueueSessionImpl

  • All Implemented Interfaces:
    WmSession, java.lang.Runnable, javax.jms.QueueSession, javax.jms.Session, javax.jms.XAQueueSession, javax.jms.XASession, javax.transaction.xa.XAResource

    public class WmXAQueueSessionImpl
    extends WmXASessionImpl
    implements javax.jms.QueueSession, javax.jms.XAQueueSession
    • Method Detail

      • getQueueSession

        public javax.jms.QueueSession getQueueSession()
                                               throws javax.jms.JMSException
        Gets the queue session associated with this XAQueueSession.
        Specified by:
        getQueueSession in interface javax.jms.XAQueueSession
        Returns:
        the queue session object
        Throws:
        javax.jms.JMSException - if an internal error occurs.
      • 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.