Name
TopicSession
Synopsis
A TopicSession
is a Session
specific to a publish/subscribe
context. It provides methods for creating publish/subscribe message
consumers (TopicSubscribers
), message producers (TopicPublishers
) and
message destinations (Topics
). It also has methods for creating
utilities objects like TemporaryTopics
.
public interface TopicSession extends javax.jms.Session { // Public Instance Methods public abstract TopicSubscriber createDurableSubscriber( Topic topic, String name) throws JMSException; public abstract TopicSubscriber createDurableSubscriber( Topic topic, String name, String messageSelector, boolean noLocal) throws JMSException; public abstract TopicPublisher createPublisher( Topic topic) throws JMSException; public abstract TopicSubscriber createSubscriber( Topic topic) throws JMSException; public abstract TopicSubscriber createSubscriber( Topic topic, String messageSelector, boolean noLocal) throws JMSException; public abstract TemporaryTopic createTemporaryTopic( ) throws JMSException; public abstract Topic createTopic( String topicName) throws JMSException; public abstract void unsubscribe( String name) throws JMSException; }
Passed To
TopicRequestor.TopicRequestor()
Returned By
TopicConnection.createTopicSession()
, XATopicConnection.createTopicSession()
, XATopicSession.getTopicSession()
Get Java Enterprise in a Nutshell, Second Edition 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.