Enterprise JavaBean Types
The EJB 2.0 specification defines three types of Enterprise JavaBeans: the session bean, the entity bean, and the message-driven bean. Figure 2.1 shows all three types of Enterprise JavaBeans.
Figure 2.1. Enterprise JavaBean types.
Session beans contain business-processing logic. Entity beans contain data-processing logic. Message-driven beans allow clients to asynchronously invoke business logic. In the following sections, you'll learn about each type of Enterprise JavaBeans.
As its name suggests, session beans implement a conversation between a client and the server side. Session beans execute a particular ...