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


Please Help Members By Posting Answers For Below Questions

What is Enterprise JavaBeans (EJB)?

604


What is the difference between session and entity beans? When should I use one or the other?

556


What is singleton session bean?

583


Why is ftp stateful?

535


What are the advantages of java beam?

533






What is ejb and its properties?

532


What ejb means?

533


What is bean-managed persistence?

581


What is ejb application?

495


Does spring use ejb?

510


What is software architecture of ejb?

540


Why do we need ejb?

579


Differentiate ‘Stateful Session’ from ‘Entity Bean’ ?

545


What does @inject mean in java?

648


Can remove() be a Stateless Session bean?

586