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:
“I need not tell you of the inadequacy of the American shipping marine on the Pacific Coast.... For this reason it seems to me that there is no subject to which Congress can better devote its attention in the coming session than the passage of a bill which shall encourage our merchant marine in such a way as to establish American lines directly between New York and the eastern ports and South American ports, and both our Pacific Coast ports and the Orient and the Philippines.”
—William Howard Taft (18571930)
“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)