53.2. Interface Definition

package javax.jms;
public interface TopicSession extends Session {
   TopicSubscriber createDurableSubscriber(Topic topic, String name)
                                                 throws JMSException;
   TopicSubscriber createDurableSubscriber(Topic topic, String name,
                               String messageSelector,
                               boolean noLocal) throws JMSException;
TopicPublisher createPublisher(Topic topic) throws JMSException;
TopicSubscriber createSubscriber(Topic topic) throws JMSException;
TopicSubscriber createSubscriber(Topic topic,
                            String messageSelector,
                            boolean noLocal) throws JMSException;
TemporaryTopic createTemporaryTopic() throws JMSException;
   Topic createTopic(String topicName) throws JMSException;
   void unsubscribe(String name) throws JMSException;
}

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.