JMS - Publish/Subscribe Message



Description

The publish/subscribe message approach includes multiple publishers and multiple consumers in which one message will be sent to all clients. Here, both publishers and subscribers are generally unknown and they will have timing dependencies. They can publish or subscribe to the topic, which manages the delivery of messages.

JMS Publish/Subscribe Message

This approach includes multiple publishers and consumers and, a single publisher can include multiple consumers. A message will be delivered to an object called topic (specify the destination), which is responsible for the delivery of a message. The topic will keep the messages and distribute to the present subscribers.

The publish/subscribe message approach has following features −

  • It contains various subscribers for each message.

  • This approach has multiple publishers as well as multiple consumers.

  • There is timing dependency for publishers and consumers.

Advertisements