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 are the different kind of ejb's?

628


What is ejb and its types?

593


How can enterprise javabeans be accessed from active server pages?

645


What is ejb and why it is used?

580


How to import ejb project in eclipse?

663






What happens when I change a value in the httpsession from inside an ejb?

610


What is the difference between ejbcreate() and ejbpostcreate?

614


How many ejb objects are created for a bean?

624


What are the attributes of transaction in ejb?

590


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

650


Is method overloading allowed in ejb?

636


What are the advantages of ejb?

644


What optimization could I use if the ejb container is the only point of write access to the database?

650


What’s the difference between hibernate and ejb 3?

645


Can remove() be a Stateless Session bean?

662