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’s new in the ejb 2.0 specification?

1085


What is Enterprise JavaBeans Query Language (EJB QL)?

992


Explain the concept of ejb ql?

1207


Which is more beneficial: CMP or BMP?

1087


Can beans who are involved in transaction have 'passivation' process?

1031


What is ejb and how it works?

1224


How does the server decide which beans to passivate and activate?

1250


What is ejb javatpoint?

1033


What is jar, war, and ear?

1231


What is ejb context?

1033


What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?

1064


Is it legal to have static initializer blocks in ejb?

1061


Name the attributes of javax.ejb.stateful.

1175


What is activemq used for?

1002


Differentiate Conversational from Non-conversational interactions?

1094