Summary

In this chapter, we explored messaging as a strategy for asynchronous request processing. The J2EE technology for messaging, JMS, can be an efficient solution when integrating enterprise applications across network boundaries or within the components of an application system itself.

We saw that JMS provides two basic models of messaging that allow messages to be sent to one or more clients simultaneously. While both enable information to be sent from producer to consumer asynchronously, the consumer can choose to have the message delivered to it synchronously. In addition, we identified how options for persistence and client acknowledgment can affect both reliability and performance.

When designed and deployed correctly, JMS-based solutions ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology 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.