Home           J2EE Concepts           JMS           Java Language           Contact           Back           Next           Bookmark this Page          










Some useful tips related to:
 - health & fitness
 - vehicle care
 - cooking
 - misc household tasks

JMS Messaging Models (Domains)


JMS supports two messaging models: Point to Point & Publish Subscribe.

A point-to-point application is based upon traditional messaging system. It involves message queues, senders, and receivers. Each message is addressed to a specific queue, and receiving clients extract messages from the queues established to hold their messages. Queues retain all messages sent to them until the messages are consumed or until the messages expire.

Publish Subscribe is similar to broadcasting. Producers publish messages to a topic, and the JMS Server delivers messages sequentially to those Consumers subscribed to that topic.
The system takes care of distributing the messages arriving from a topic's multiple publishers to its multiple subscribers. Topics retain messages only as long as it takes to distribute them to current subscribers.