12.1. JMS Features

JMS is a set of APIs that supports two different modes of messaging operation. In the first mode, point-to-point, messages are sent from a single source to a single destination. In the second mode, publish-subscribe, a single source can send messages that are replicated to any number of recipients.

The ability to send messages, either to a single recipient or to multiple recipients, can be written fairly easily just using sockets. So what are the benefits provided by using MOM software such as a JMS provider?

The sender and receiver of a JMS message are frequently described as being loosely coupled. In a sockets application, the sender and receiver are tightly coupled—they are generally designed as a unit. For a message to ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.