Session Beans by Gopalan Suresh Raj Session Beans Gopalan Suresh Raj A session bean is created by a client and in most cases exists only for the duration of a single session. A session bean performs operations on behalf of the client such as database access or performing calculations. Although session beans can be transactional, they are not recoverable following a system crash.
Session beans can be stateless or can maintain conversational state across methods and transactions.
The container manages the conversational state of a session bean if it needs to be evicted from memory. A session bean must manage its own persistent data. Each Session Bean is usually associated with one EJB client. Each Session Bean is created and destroyed by the particular EJB client that it is associated with. It is thus transient and will not outlive the virtual machine on which it was created.