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

Define SessionContext ?

593


What is stateless and stateful session bean in ejb?

491


What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?

538


What is the procedure of ejb container to handle exceptions?

545


Why is ejb used?

505






what is the Relationship between EJB and CORBA architecture?

3418


Enlist the enterprise beans types?

603


Why do we need ejb in java?

517


How can one EJB be called from within another EJB?

519


What do you mean enterprise javabeans (ejb) container?

602


Explain ejbhome and ejbobject in ejb?

586


can we stop the execution of a method before completion?

2507


How to generate ejb stubs in eclipse?

728


What is session bean?

541


What is stateless and stateful?

512