JMS Messaging Models:-
The JMS API supports two type of models as follows
1 Point-to-Point Model
2 Publisher/Subscriber Model
1 Point-to-Point Model:-
2 In point-to-point model, the message destination is called “Queue”.
3 Point-to-Point characteristics,
a. Each message has only one consumer.
b. A sender and a receiver of a message have no timing
dependencies. The receiver can fetch the message whether or not it was running
when the client sent the message.
c. The receiver acknowledges the successful processing of a
message.
2 Publisher/Subscriber Model:-
2 In this model, the message producer is called publisher and the consumers are called subscribers. Also the message destination is called “Topic”.
3 Publish/Subscribe model characteristics,
a. Each message can have multiple consumers.
b. Publishers and subscribers have a timing dependency. A client
that subscribes to a topic can consume only messages published after the client
has created a subscription, and the subscriber must continue to be active in
order for it to consume messages.