Инсталляция
A stateless session bean typically implements a procedural service on top of a database or legacy application.
Умный Дом
A client program creates a new session object when invoking a create method on a session bean home object.
Акустические системы компании Bowers
You can design a session bean to be either stateful or stateless. An instance of a stateful session bean class is associated with one client. The instance retains state on behalf of the client across multiple method invocations.
Session objects and the stateful instances of the session bean class have a one-to-one correspondence. The EJB container always delegates the method invocations from a given client to the same stateful session bean instance. The instance variables of the stateful session bean class provide a convenient mechanism for the application developer to retain client-specific state on the server.
A stateful session bean typically implements a conversational business process. A stateful instance of a session bean class is associated with an object identity and is bound to a specific client.
In contrast, a stateless session object does not retain any client-specific state between client-invoked methods. The EJB container maintains a pool of instances of the session bean class and delegates a client method invocation to any available instance. It is important to note that the instance variables of a stateless session bean class may not contain any client-specific state when a method invocation completes. The reason is that the EJB container may reuse the instance of the stateless session bean class to service method invocations from a different client.
A stateless session bean typically implements a procedural service on top of a database or legacy application. The service is implemented as a collection of procedures that are bundled into a stateless session bean class. An instance of a stateless session bean class is not associated with any object identity and can be used by any client.