The Java EE 6 Tutorial, Volume I

Types of Enterprise Beans

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

Table 14–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 19, Introduction to the Java Persistence API.