MQTopicSession

public class MQTopicSession
extends MQSession
implements TopicSession
java.lang.Object
   |
   +----com.ibm.mq.jms.MQSession
           |
           +----com.ibm.mq.jms.MQTopicSession
          

An MQTopicSession object provides methods for creating MQTopicPublisher, MQTopicSubscriber, and MQTemporaryTopic objects.

Methods

createPublisher

public TopicPublisher createPublisher(Topic topic) throws JMSException;

Creates a publisher for the specified topic.

Parameters
Exceptions

createSubscriber

public TopicSubscriber createSubscriber(Topic topic) throws JMSException;

Creates a nondurable Subscriber to the specified topic.

Parameters
Exceptions

createSubscriber

public TopicSubscriber createSubscriber(Topic topic, String selector, 
                                        boolean noLocal) 
              throws JMSException;

Creates a nondurable Subscriber to the specified topic.

Parameters
Exceptions

createTemporaryTopic

public TemporaryTopic createTemporaryTopic() throws JMSException;

Creates a TemporaryTopic object. Its lifetime will be that of the MQTopicConnection unless it is deleted earlier.

Returns
Exceptions

createTopic

public Topic createTopic(String topicName) throws JMSException;

Creates a topic identity given a Topic name.

Parameters
Returns
Exceptions