Chapter 9. Message-Driven Beans

Message-Driven Beans

In Chapter 2, “Enterprise JavaBeans (EJB),” I provided information about EJB, but it was limited to the two commonly used beans: the session bean and the entity bean. They make up the skeleton of an enterprise application because they allow you to design and develop distributed applications. Although you can use session beans and entity beans to produce and consume messages with JMS, they can only be used for consuming messages synchronously. Sun Microsystems introduced another bean for asynchronous messaging with EJB 2.0: the message-driven bean. In this chapter, I will discuss the message-driven bean and provide ...

Get Java Message Service (JMS) for J2EE 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.