Use Case for JMS Topic

The use case for JMS Topic includes these considerations:

  • A distribution mechanism for publishing messages that are delivered to multiple subscribers.

  • Multiple consumers require delivery of the message.

  • There is a timing dependency between publishers and subscribers. The publisher must create a subscription in order for clients to be able to subscribe. The subscriber must remain continuously active to receive messages, unless it has established a durable subscription. In that case, messages published while the subscriber is not connected will be redistributed whenever it reconnects.