com.ibm.mq.jms
Class MQTopicConnection

java.lang.Object
  |
  +--com.ibm.mq.jms.MQConnection
        |
        +--com.ibm.mq.jms.MQTopicConnection
All Implemented Interfaces:
javax.jms.Connection, javax.jms.TopicConnection
Direct Known Subclasses:
MQXATopicConnection

public class MQTopicConnection
extends MQConnection
implements javax.jms.TopicConnection

An MQTopicConnection object is an active connection to a publish/subscribe JMS provider.


Method Summary
 javax.jms.TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
          Creates a TopicSession object.
 
Methods inherited from class com.ibm.mq.jms.MQConnection
createConnectionConsumer, createDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer
 
Methods inherited from interface javax.jms.Connection
createConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

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 direct 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 MQTopicConnection failed to create a session due to an internal error or if a transacted session was requested when using a direct connection to a broker.

(c) Copyright IBM Corp. 2005. All Rights Reserved.