11.1. The Stateless Session Bean
A stateless session bean is very efficient and relatively easy to develop. A session bean can be swapped freely between EJB objects because it isn't dedicated to one client and doesn't maintain any conversa...
11.2. SessionContext
The javax.ejb.SessionContext
interface provides a view into the EJB container's environment. The SessionContext object can be used as the bean instance's interface to the EJB cont...
11.3. The Life Cycle of a Stateless Session Bean
The life cycle of
a stateless session bean is very simple. It has only two states: Does Not Exist and Method-Ready Pool. The Method-Ready Pool is an instance pool of statel...
11.4. The Stateful Session Bean
Each stateful session bean is dedicated to one client for the life of the bean instance; it acts on behalf of that client as its agent. Stateful session beans are not swapped among EJB objects nor are they kept in a...
11.5. The Life Cycle of a Stateful Session Bean
The biggest difference between the stateful session bean and the other bean types is that stateful session beans do not use instance pooling. Stateful session beans are dedicated to one...
11.6. Stateful Session Beans and Extended Persistence Contexts
In Chapter 5, we discussed the differences between a transaction-scoped persistence context and an extended one. The EntityManager injected into the TRavelAgentBean class with the @Per...
С 2009 года мы стали переводить структура сайта на различные языки. Сайт теперь будет содержать книги не только на английском языке, но также и на других европейских языках, в том числе и на Русском языке.