Types of EJB

The EJB 2.0 specification has several major and important additions and changes. One of the biggest additions has been a new type of bean—a message-driven bean. These beans provide the J2EE applications with the capability to be triggered by a messaging engine, and more specifically by the arrival of a specific message. Three types of beans are defined in the EJB specifications: entity beans, session beans, and message-driven beans. Each bean enables a specific set of interactions between the client and the J2EE application.

Entity Beans

An entity bean represents the different data objects of a J2EE application and the relationships between them. Entity beans are a representation of a J2EE application's data, and are independent ...

Get Java™ Connector Architecture: Building Custom Connectors and Adapters 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.