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

What are the different types of ejb?

909


What happens when I change a value in the httpsession from inside an ejb?

914


Is microservice stateless?

871


What is entity bean in ejb?

1021


What are ejb components?

921


What are the key benefits of the ejb technology?

983


What is the procedure of ejb container to handle exceptions?

923


How does ejbs work?

880


What does @inject mean in java?

1054


Name the attributes of javax.ejb.ejb.

899


What is ejbdoclet?

892


What is difference between ejb 1.1 and ejb 2.0?

949


Is udp stateless?

942


Is it possible to have threading in ejb?

936


Can EJB made to handle multiple transactions?

966