DEVFYI - Developer Resource - FYI

What is session bean

J2EE Interview Questions and Answers (Part 2)


(Continued from previous question...)

286. What is session bean

An enterprise bean that is created by a client and that usually exists only for the duration of a single client-server session. 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.

(Continued on next question...)

Other Interview Questions