what is the difference between stateless and stateful
sessions?
Answer Posted / rajshekaran pillai
In case of a Stateful session bean a state called passive
state exists in its life cycle. The EJB container uses a
lease recently used algorithm to decide to passivate the
bean i.e move it from memory to secondary storage. Whenever
the client calls any business method on the bean it is
activated.
Whereas a stateless session bean is never passivated
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Why stateless is better than stateful?
What is ejb javatpoint?
What do you mean enterprise javabeans (ejb) container?
Why do we use ejb?
What are the advantages of ejb components?
What are the differences between ejb 3.0 and ejb 2.0?
What is EJB server?
What is rmi and ejb in java?
Why do we need ejb?
What is the difference between ejb and java beans?
What is ejb in spring?
How does ejb invocation happens?
How do you decide whether you should use session, entity or message driven bean?
What is the difference between session and entity beans? When should I use one or the other?
Is method overloading allowed in ejb?