Sunday, 5 August 2018

Exploring JMS point-to-point model

In Point-to-Point model, client send messages to a queue, other client receives the messages from this 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’

Can a Queue have more than one consumer?
Yes, a queue can have more than one consumer, but each message in the queue is delivered to only one consumer.

Can a consumer choose the message that he interested in?
A consumer may be configured to use a message selector. In this case only messages whose properties match the message selector will be delivered to the consumer.

In my next post, I am going to explain below things.
         a. Temporary Queue
         b. Queue Browser: Get all the items in a queue
         c. Queue browser: filter the messages

Previous                                                 Next                                                 Home

No comments:

Post a Comment