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 and its architecture?
What is difference between ejb 1.1 and ejb 2.0?
What are the callback annotations for entity bean?
Define Clone?
What is the use of @resource?
What is bean-managed persistence?
How ejb invocation happens?
Can beans who are involved in transaction have 'passivation' process?
What do you mean by EJB architecture?
What are ejb components?
How do you decide whether you should use session, entity or message driven bean?
Why do we need ejb in java?
Differentiate Conversational from Non-conversational interactions?
Which is more beneficial: Stateful or Stateless Bean?
How can I access ejb from asp?