what is the difference between stateless and stateful
sessions?

Answer Posted / anitha

after deploying Stateless bean, Ejb Container creates some
objects and palce it in Object pooling.for each client
request it will get any one object from pool and serve the
client.so that it con't able to store client specific data
while invoking methods.

Where as in Statefull Bean, for each client the Container
creates one Object and serve the Client each request until
client exit.so that it can able to Persist the Client
data.it supports Object Activation and Passivation

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ejb and its architecture?

512


What is difference between ejb 1.1 and ejb 2.0?

571


What are the callback annotations for entity bean?

515


Define Clone?

595


What is the use of @resource?

547






What is bean-managed persistence?

579


How ejb invocation happens?

571


Can beans who are involved in transaction have 'passivation' process?

541


What do you mean by EJB architecture?

575


What are ejb components?

530


How do you decide whether you should use session, entity or message driven bean?

565


Why do we need ejb in java?

517


Differentiate Conversational from Non-conversational interactions?

543


Which is more beneficial: Stateful or Stateless Bean?

582


How can I access ejb from asp?

584