Chapter 8. Message-Driven Beans

Topics in This Chapter

  • Messaging Models

  • Overview of the Java Message Service (JMS)

  • Designing Message-Driven Beans

  • A Publisher Client and Message Bean

  • Message-Driven Beans with EJBs

The previous chapters showed you how to design session and entity beans with business methods. When clients call these business methods, each caller blocks (or waits) until the method completes. Although this synchronous behavior certainly works well with many applications, it can become a problem with clients who cannot afford to wait around for lengthy business methods to complete their jobs. In situations like this, we need another way for clients to perform enterprise tasks without waiting.

The Java Message Service (JMS) allows objects ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications 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.