I know that a Beans stateless session is for EJB Beans, while Request Scoped is for CDI Beans (or JSF managed beans), so I'll start by providing both of these definitions from the Java EE Tutoriel .
Beans-free definition :
A session without a bean does not support interactive state with the client. When a client invokes the methods of the idle bean, the instance beans s can contain a state specific to that client but only for the duration of the call. When the method is completed, the state of the client should not be saved.
CDI Define Request Definition :
User interaction with a web application in a single HTTP request.
What I understood from both definitions is that the concept of a Beans stateless session matches the concept of a request scope, but I'm not sure because the naming "session" confused me. So, I asked myself if this was the case (same concept), maybe they will have a similar naming convention (using a query instead of a session).
So my question is: is there any conceptual difference between a bezelless EJB Beans session and a beans CDI / JSF request?
Tarik source
share