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 ejb bean in java?
How many enterprise beans?
What is @autowired required false?
What do you mean by bean managed transaction?
What is the use of @ejb annotation?
Differentiate “find a method” from “select method” in EJB ?
What does statelessness mean?
How does ejb invocation happens?
How to invoke ejb from java client?
What is @enableautoconfiguration?
What are the advantages of ejb?
Is ejbCreate() method mandatory while defining a Session Bean?
What is singleton session bean?
What is difference between ejb and spring?
What are versions of ejb?