Use Case for JMS Queue

The use case for JMS Queue includes these considerations:

  • A staging area that contains messages that have been sent and are waiting to be read. As the name queue suggests, the messages are delivered in the order sent. A message is removed from the queue once it has been read.

  • Point-to-point solution based on Publisher/ Subscriber model.

  • Only one consumer will get the message.

  • The producer does not have to be running at the time the consumer consumes the message, nor does the consumer need to be running at the time the message is sent,

  • Every message successfully processed is acknowledged by the consumer.