As a component model, EJB defines three bean types:
- Session Bean: The session bean stores the data of a particular user's session. The lifetime of a session bean is limited to the duration of the interaction between the client and the bean. The client normally creates a session bean and invokes the functions. The EJB container removes the bean when it is no longer required. Session beans can be further classified into the following three types:
- Stateless Bean: The state information between the client and bean is not maintained in a stateless bean. When a function of a stateless bean is invoked by a client, the instance variables of the beans may have some client-specific state information. This information exists ...