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

Can you be deported if you are stateless?

555


What is ejb in spring?

541


TX operation funtion executed by?

2294


Differentiate “find a method” from “select method” in EJB ?

613


What is ejb container in java?

591






Explain the concept of local interfaces?

617


Enlist the changes in EJB 2.1 ?

658


What is ejb and its uses?

620


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?

689


What is ejb and how it works?

598


What is software architecture of ejb?

625


What are the advantages of ejb components?

633


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

618


What are the components of ejb?

647


What is entity beans in ejb with example?

594