com.ibm.mq.jms

Class MQQueueSession

    • Method Detail

      • createReceiver

        public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue)
                                               throws javax.jms.JMSException
        Creates a QueueReceiver object to receive messages from the specified queue.
        Specified by:
        createReceiver in interface javax.jms.QueueSession
        Parameters:
        queue - the specified queue
        Returns:
        the queue receiver
        Throws:
        javax.jms.JMSException
      • createReceiver

        public javax.jms.QueueReceiver createReceiver(javax.jms.Queue queue,
                                             java.lang.String selector)
                                               throws javax.jms.JMSException
        Creates a QueueReceiver object to receive messages from the specified queue, using the specified message selector.
        Specified by:
        createReceiver in interface javax.jms.QueueSession
        Parameters:
        queue - the specified queue
        selector - the selector to use when retrieving messages from the queue
        Returns:
        the queue receiver
        Throws:
        javax.jms.JMSException
      • createSender

        public javax.jms.QueueSender createSender(javax.jms.Queue queue)
                                           throws javax.jms.JMSException
        Creates a QueueSender object to send messages to the specified queue.
        Specified by:
        createSender in interface javax.jms.QueueSession
        Parameters:
        queue - the queue to which messages are to be sent
        Returns:
        the queue sender
        Throws:
        javax.jms.JMSException - if the operation fails
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.