a) Stateful beans are also Persistent session beans. They are designed to service business processes that span multiple method requests or transactions.
Stateless beans are designed to service business process that last only for a single method call or request.
b) Stateful session beans remembers the previous requests and reponses. Stateless session beans do not remember the previous request and responses.
c)Stateful session beans does not have pooling concept. Stattless session bean instances are pooled.
d) Stateful S.Beans can retain their state on behave of an individual client. Stateless S.Beans donot maintain states.
e) Stateful S.Beans can be passivated and reuses them for many clients. Stateless S.Beans, client specific data has to be pushed to the bean for each method invocation which result in increase of network traffic.
Above answer was rated as good by the following members: muktasharad
RE: What is the difference between Stateful session bean and Stateless session bean
a) Stateful beans are also Persistent session beans. They are designed to service business processes that span multiple method requests or transactions.
Stateless beans are designed to service business process that last only for a single method call or request.
b) Stateful session beans remembers the previous requests and reponses. Stateless session beans do not remember the previous request and responses.
c)Stateful session beans does not have pooling concept. Stattless session bean instances are pooled.
d) Stateful S.Beans can retain their state on behave of an individual client. Stateless S.Beans donot maintain states.
e) Stateful S.Beans can be passivated and reuses them for many clients. Stateless S.Beans, client specific data has to be pushed to the bean for each method invocation which result in increase of network traffic.
RE: What is the difference between Stateful session bean and Stateless session bean
There is another important point which all of you guys have failed to mention. The important point is that Stateless Session beans are scaleable and can therefore be replaced by an enhanced model whereas Stateful Session beans are not scaleable.