Introduction

As we discussed in the first section of this book, tight coupling between components can create maintenance problems in a distributed application. A small change in one component could lead to numerous changes in other tightly coupled components. These changes could also be difficult to identify and program. With the loosely coupled architecture of messaging services these problems can be avoided. Messaging services allow application components to communicate in a loosely coupled fashion.

The Java Message Service (JMS) API provides access to various messaging services. The applications or components using these services can communicate peer-to-peer in a loosely coupled fashion. Messages may be sent even if the recipient is not currently ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.