Class: TopicSession

TopicSession

Class that works as a context for sending and publishing messages on a Topic.

new TopicSession()

This method is not meant to be used directly. Creates a TopicSession object that works as a context for sending and publishing messages on a Topic.

Extends

Method Summary

createPublisher
Creates a new TopicPublisher object for publishing messages on a specific Topic.
createSubscriber
Creates a new TopicSubscriber object for receiving messages on a specific Topic.

Inherited Methods

Method Detail

createPublisher(topic) → {TopicPublisher}

Creates a new TopicPublisher object for publishing messages on a specific Topic.
Parameters:
Name Type Description
topic Topic topic to which the publisher must send messages.
Returns:
Type
TopicPublisher

createSubscriber(topic, messageSelector) → {TopicSubscriber}

Creates a new TopicSubscriber object for receiving messages on a specific Topic.
Parameters:
Name Type Description
topic Topic topic from which the subscriber must receive messages.
messageSelector String specifies the optional selector, e.g. the rule to be applied to messages being received to filter them or not. See JMS specifications for more information on message selectors.
Returns:
Type
TopicSubscriber