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
What is singleton session bean?
Where is ejb used?
What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?
What is entity bean?
What is the difference between ejb and java beans?
What is EJB object?
What is mdb?
What do you mean enterprise javabeans (ejb) container?
What is the procedure of ejb container to handle exceptions?
How can a session bean be configured for transactions of bean-managed?
What is the difference between session and entity beans? When should I use one or the other?
Define SessionContext ?
What is stateless session bean?
What are the attributes of transaction in ejb?
What is ejb client?