In stateless session bean, what the "session" refers?.
There are two types of Session Enterprise JavaBean. One maintains "state" and the other does not maintain "state".
A user sits at a desk and uses a software application for 10 minutes. The user had a "session" with the application. During his/her session with the application, he/she executed some type of business logic in the application. The application's developer wrote the code that contains the logic in a "Session"
EJB.
There are other types of Enterprise JavaBeans. There are "Entity" Enterprise JavaBeans and there are "Message-Driven" Enterprise JavaBeans. These other types of EJB are for different things other that handling business logic and user "sessions" with the application.
The word "Session" is an adjective that describes a certain type of Enterprise JavaBean. This helps distinguish it from the other types, e.g. Entity, Message-Driven.
The
javax.servlet.http.HttpSession class and a Stateful Session Enterprise JavaBean are not the same. The "state" of a Stateful Session Enterprise JavaBean is not stored in a HttpSession object.
Hope this helps!
[ October 17, 2008: Message edited by: James Clark ]