SLSB

SLSB


In the Java Platform, Enterprise Edition specifications, a Session Bean is a type of Enterprise Bean. The only other type is the Message-driven bean. Legacy EJB versions from before 2006 (EJB3) had a third type of bean, the Entity Bean. In EJB 3.0 (Java EE 5) those Entity Beans have been replaced by Java Persistence API entities.

Contrary to JPA Entities, which represent persistent data maintained in a database, a Session Bean implements a business task and is hosted by an EJB container.

A session bean performs operations, such as calculations or database access, for the client. Although a session bean can be transactional, it is not recoverable should a system crash occur. Session bean objects either can be stateless or can maintain conversational state across methods and transactions. If a session bean maintains state, then the EJB container manages this state if the object must be removed from memory. However, the session bean object itself must manage its own persistent data.

Read more about SLSB:  Stateless Session Beans, Stateful Session Beans, See Also