Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why stateless is better than stateful?

1091


What is ejb javatpoint?

1033


What do you mean enterprise javabeans (ejb) container?

1197


Why do we use ejb?

1050


What are the advantages of ejb components?

1148


What are the differences between ejb 3.0 and ejb 2.0?

1096


What is EJB server?

1171


What is rmi and ejb in java?

1086


Why do we need ejb?

1083


What is the difference between ejb and java beans?

1057


What is ejb in spring?

974


How does ejb invocation happens?

1051


How do you decide whether you should use session, entity or message driven bean?

1108


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

1030


Is method overloading allowed in ejb?

1143