Day 10. Message-Driven Beans
So far, you have looked at two types of Enterprise JavaBeans (EJB)—the Session bean and the Entity bean. Today you will consider the third and final EJB, the Message-Driven bean. The following topics are covered:
Similarities and differences with Entity and Session beans
The life-cycle of a Message-Driven bean
Writing a Message-Driven bean
Prior to the EJB 2.0 specification, it was not possible to support asynchronous message passing. All EJB method calls had to be synchronous and initiated by the client.
With J2EE 1.3 and later versions, you can use Message-Driven beans to combine the functionality of EJBs with the Java Message Service (JMS) to support asynchronous communication.
Although JMS was covered in detail ...
Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition 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.