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
Define SessionContext ?
What is stateless and stateful session bean in ejb?
What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?
What is the procedure of ejb container to handle exceptions?
Why is ejb used?
what is the Relationship between EJB and CORBA architecture?
Enlist the enterprise beans types?
Why do we need ejb in java?
How can one EJB be called from within another EJB?
What do you mean enterprise javabeans (ejb) container?
Explain ejbhome and ejbobject in ejb?
can we stop the execution of a method before completion?
How to generate ejb stubs in eclipse?
What is session bean?
What is stateless and stateful?