com.ibm.mq.jms

Class MQTopicConnection

    • Method Detail

      • createTopicSession

        public javax.jms.TopicSession createTopicSession(boolean transacted,
                                                int acknowledgeMode)
                                                  throws javax.jms.JMSException
        Creates a TopicSession object.
        Specified by:
        createTopicSession in interface javax.jms.TopicConnection
        Parameters:
        transacted - if true, throws a JMSException on a real-time connection to a broker
        acknowledgeMode - indicates whether the consumer or the client will acknowledge any messages it receives; ignored if the session is transacted. Legal values are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.
        Returns:
        a newly created topic session
        Throws:
        javax.jms.JMSException - if the connection failed to create a session due to an internal error or if a transacted session was requested when using a real-time connection to a broker
(c) Copyright IBM Corp. 2008, 2015. All Rights Reserved.