The container pools the instances of the beans. When multiple clients call
create()......ejbCreate method of the bean will be called in all the
instances of the pooled bean......then the client is handed over an
EJBObject.
Same happens for statefull session beans...the difference is u can pass
parameters to the create method and the matching ejbCreate(.....) will be
called in that instance. Same for entity beans.......the instance can be
cached in this case if used before.
-----Original Message-----
From: Samuel Abraham [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 14, 2000 6:07 PM
To: [EMAIL PROTECTED]
Subject: Life cycle of beans(Session and entity)
Hi all,
I have a doubt regarding bean life cycle(Session and Entity).
Assume that many clients are calling the create() method of a stateless
session beans.
Will the ejbCreate() be called whenever the create() method is called?
What will be the scenario in the case of stateful and entity beans?
TIA
Samuel
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".