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 an entity and its types?

554


What is ejb ql?

570


How can enterprise javabeans be accessed from active server pages?

570


How does the server decide which beans to passivate and activate?

533


What is Session Bean Interface?

568






What do you mean enterprise javabeans (ejb) container?

609


What were entity beans?

593


What do you mean by bean managed transaction?

553


What is entity beans in ejb with example?

507


What is ejb role in j2ee?

587


What is ejb and its types?

519


can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.

1786


Define Context?

606


Why should we use ejb?

529


What is ejb in java?

540