Session Beans
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 Session Beans: Stateless Session Beans, Stateful Session Beans, See Also
Famous quotes containing the words session and/or beans:
“The bar is the male kingdom. For centuries it was the bastion of male privilege, the gathering place for men away from their women, a place where men could go to freely indulge in The Bull Session ... the release of the guilty anxiety of the oppressor class.”
—Shulamith Firestone (b. 1945)
“When my hoe tinkled against the stones, that music echoed to the woods and the sky, and was an accompaniment to my labor which yielded an instant and immeasurable crop. It was no longer beans that I hoed, nor I that hoed beans; and I remembered with as much pity as pride, if I remembered at all, my acquaintances who had gone to the city to attend the oratorios.”
—Henry David Thoreau (18171862)