JMS Topic
Overview
Create the queuing mechanism for handling JMS messages. Known as the Publish/Subscriber
domain, where Publishers transmit the messages as Topics, and Subscribers
subscribe to various Topics to receive only those messages that they are interested in.
Participants
TopicName
- name of the topic class to handle creation of topic connection, session and publisher.
- provides a basic main() method that sets up TopicConnectionFactory, Topic,
TopicConnection, TopicSession and QueueSubscriber (which is the MessageListener participant).
MessageListener
- the class that implements the JMS MessageListener and subscribes to one or more Topics.
- is used to receive asynchronously delivered messages.
Parameters
Message