Message-Driven Bean Views and the UML

Structurally, message-driven beans consist of a main Java class, often called the implementation class or the message-driven bean class. That's all there is to it. There are no interfaces nor other classes unless your design calls for some additional helper classes to be added to the EJB to assist in supporting your business logic.

Because there is really only one class to speak of, there are also no relationships between elements to consider. As you can see, this makes message-driven beans typically smaller and much easier to create and use than the other EJB types.

Client View

The primary interface between the client and the message-driven bean consists of the messages the client can send out to the message-driven ...

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.