Java Tutorial - Java Scipt : Session Beans

Java Tutorial - Java Scipt :

Session Beans


Session beans are short-lived and well suited for scalable server-side components. They come in two flavors: stateless and stateful. Stateless session beans are the Swiss army knives of EJBs; they serve a multitude of roles largely due to their lean approach to server-side components. By contrast, stateful session beans fall into an uninteresting niche because they are seldom the optimal choice. The following sections give you a look at both of these types of session beans in more detail.