com.ibm.mq.jms

Class MQTopicSession

    • Method Detail

      • createPublisher

        public javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic)
                                                 throws javax.jms.JMSException
        Creates a publisher for the specified topic.
        Specified by:
        createPublisher in interface javax.jms.TopicSession
        Parameters:
        topic - the topic on which messages are to be published
        Returns:
        the publisher
        Throws:
        javax.jms.JMSException - if a session fails to create a publisher due to an internal error
      • createSubscriber

        public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic)
                                                   throws javax.jms.JMSException
        Creates a nondurable subscriber to the specified topic.
        Specified by:
        createSubscriber in interface javax.jms.TopicSession
        Parameters:
        topic - the topic to subscribe to
        Returns:
        the topic subscriber
        Throws:
        javax.jms.JMSException - if the session fails to create a subscriber due to some JMS error.
        javax.jms.InvalidDestinationException - if an invalid topic is specified.
      • createSubscriber

        public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic,
                                                 java.lang.String selector,
                                                 boolean noLocal)
                                                   throws javax.jms.JMSException
        Creates a nondurable subscriber to the specified topic.
        Specified by:
        createSubscriber in interface javax.jms.TopicSession
        Parameters:
        topic - the topic to subscribe to
        selector - only messages with properties matching the message selector expression are delivered. This value may be null
        noLocal - if set, inhibits the delivery of messages published by its own connection
        Returns:
        the topic subscriber
        Throws:
        javax.jms.JMSException - if the session fails to create a subscriber due to some JMS error or invalid selector
        javax.jms.InvalidDestinationException - if an invalid topic is specified.
        javax.jms.InvalidSelectorException - if the message selector is invalid.
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.