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
|
close |
commit |
createBytesMessage |
createConsumer |
createDurableConsumer |
createDurableSubscriber |
createMapMessage |
createMessage |
createObjectMessage |
createProducer |
createQueue |
createSharedConsumer |
createSharedDurableConsumer |
createTemporaryQueue |
createTemporaryTopic |
createTextMessage |
createTopic |
getAcknowledgeMode |
getTransacted |
recover |
rollback |
unsubscribe |
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