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 singleton session bean?

576


Where is ejb used?

516


What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?

558


What is entity bean?

584


What is the difference between ejb and java beans?

561






What is EJB object?

582


What is mdb?

546


What do you mean enterprise javabeans (ejb) container?

596


What is the procedure of ejb container to handle exceptions?

542


How can a session bean be configured for transactions of bean-managed?

576


What is the difference between session and entity beans? When should I use one or the other?

546


Define SessionContext ?

590


What is stateless session bean?

544


What are the attributes of transaction in ejb?

503


What is ejb client?

546