Chapter 33. Message-Driven Beans

Message-Driven Beans

In Chapter 32, “Java Message Service,” you learned about the messaging service and the Java Message Service ( JMS). This provides the basic knowledge for working with the third type of Enterprise JavaBeans (EJB): message-driven beans (MDB). Message-driven beans are a new type of bean added to the EJB 2.0 specification. The MDB model is designed to enable an enterprise bean to be asynchronously invoked to handle the processing of incoming JMS messages. With the other two types of beans, you can send and receive messages only synchronously, not asynchronously.

This chapter begins with a definition of message-driven ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions 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.