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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.