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
What is Enterprise JavaBeans (EJB)?
What is the difference between session and entity beans? When should I use one or the other?
What is singleton session bean?
Why is ftp stateful?
What are the advantages of java beam?
What is ejb and its properties?
What ejb means?
What is bean-managed persistence?
What is ejb application?
Does spring use ejb?
What is software architecture of ejb?
Why do we need ejb?
Differentiate ‘Stateful Session’ from ‘Entity Bean’ ?
What does @inject mean in java?
Can remove() be a Stateless Session bean?