Enterprise bean types: revisited

In this section, we re-introduce the three types of EJBs: entity, session, and message-driven beans, and explore their structure, behavior, and container life-cycle relationship in more detail. Additionally, when a particular bean type might be an appropriate choice in the design, an expanded client view is also discussed. Finally, we conclude with an example application scenario that helps us to classify the usage of a particular bean type.

Bean type classification revisited

Which EJB type to choose really depends on the functionality that it should provide, what business process and behavior it represents, and how it should be invoked.

Entity beans

Entity beans are typically modeled to represent domain objects, ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.