Sunday, 5 August 2018

JMS Domains

JMS supports two kinds of messaging models.

a.   Point-to-Point model
b.   Publish-Subscribe model

Point-to-Point Model
In Point-to-Point model, client1 sends messages to client2 via a Queue.




a.   Client 1 send message ‘M’ to the queue.
b.   Client 2 reads the message ‘M’ from queue
c.   Client 2 acknowledges that ‘it received the message’

Publish-Subscribe model
In Publish-subscribe model, client send the message to the topic. All the subscribers subscribe to the topic to receive the messages.




a.   Client 1 publish the message to a topic.
b.   Client 2, Client 3…Client N subscribe to this topic to receive the messages.
c.   Topic deliver the messages to all the subscribed clients.

Previous                                                 Next                                                 Home

No comments:

Post a Comment