Summary

Message-driven beans are new in J2EE 1.3. They are designed to process JMS messages and are useful for situations where synchronicity is not required, nor desired. A good example is using message-driven beans for integrating loosely coupled systems.

UML class diagrams are used to model both client and internal views, even though there are no interfaces exposed to the client. Modeling is done using UML subsystems, classes, methods, fields, and stereotypes. Communication with message-driven beans takes place asynchronously via messages sent to a topic or a queue.

Message-driven beans use the transaction concept like other EJBs. As with other EJBs, the message-driven beans' implementation class implements the life cycle methods and business ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.