Java Tutorial - Java Scipt : Message-Driven Beans

Java Tutorial - Java Scipt :

Message-Driven Beans

Message-driven beans (MDBs) are the asynchronous EJBs. They work handin- hand with JMS to handle messaging and are highly scalable because they’re short-lived and stateless. The MDB specification is wonderfully elegant, providing a great cornerstone for messaging, albeit one that is not necessarily very object-oriented. MDBs tend to look like event handlers, because that is the core activity they are tasked with. Message-driven beans are the only way to develop message consumers within the EJB layer of J2EE. Quite often, the MDB will be just the first in a chain of EJBs that must work together to fulfill a request.