The Java EE 5 Tutorial

Types of Enterprise Beans

Table 20–1 summarizes the two types of enterprise beans. The following sections discuss each type in more detail.

Table 20–1 Enterprise Bean Types

Enterprise Bean Type 

Purpose 

Session 

Performs a task for a client; optionally may implement a web service

Message-Driven 

Acts as a listener for a particular messaging type, such as the Java 

Message Service API 


Note –

Entity beans have been replaced by Java Persistence API entities. For information about entities, see Chapter 24, Introduction to the Java Persistence API.