Home

 

EJB types and their definition

In EJB 3.0 there are two types of EJB:

Session beans (stateless and stateful)

Message driven beans

Note: EJB2.x entity beans have been replaced by JPA entities, which are discussed in Chapter | 2, Persistence using the Java Persistence API (JPA).

Next we describe how annotations can be used to declare session beans and MDB beans.

ibm.com/redbooks