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 3?

541


What is bean-managed transaction?

571


What is ejbdoclet?

533


can we stop the execution of a method before completion?

2521


What are the key features of the ejb technology?

601






How to import ejb project in eclipse?

587


Why do we need ejb?

582


can u explain about design patterns like singleton,builder,factory

1907


What is the default transaction attribute for an ejb?

548


Why is ejb used?

517


What is the full form of ejb in java?

513


What is mdb in ejb?

531


What do you mean by EJB architecture?

583


What is singleton session bean?

588


What is EJB server provider?

593