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...

Explain Stateful session bean life cycle?

Answer Posted / srinivas

* A stateless session bean instance’s life starts when
the container invokes newInstance() on the session bean
class to create a new instance. Next, the container calls
setSessionContext() followed by ejbCreate() on the instance.
The container can perform the instance creation at any
time—there is NO relationship to a client’s invocation of
the create() method.
* The session bean instance is now ready to be
delegated a business method call from any client.
* When the container no longer needs the instance
(usually when the container wants to reduce the number of
instances in the method-ready pool), the container invokes
ejbRemove() on it. This ends the life of the stateless
session bean instance.

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is ejbCreate() method mandatory while defining a Session Bean?

1080


What do you understand by session facade?

998


What do you mean by abstract schema?

1054


Is decorator an ejb design pattern?

1133


Are entity beans allowed to create() methods?

1055


What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations? When would I use one over the other?

1176


What is stateless ejb?

952


In what format is the conversational data written to the disk?

1002


What are stateless functions?

962


What does statelessness mean?

1029


What are ejbs used for?

897


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

997


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

1112


What is the difference between Session bean and Entity bean?one?

1138


What is the difference between find and select methods in ejb?

1005