Hi Rickard
You are right,
But I wanted to emphasize that no of EJB create call may not coincide with
the no of instances in the pool as one instance can service many calls.


Regards
Ashwani Kalra
E-Comm Group
NIIT Ltd. India


> ----------
> From:         Rickard �berg[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for Enterprise JavaBeans development
> Sent:         Monday, July 31, 2000 1:07 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Stateless Session Beans and instances
>
> On Mon, 31 Jul 2000 12:04:30 +0530, Ashwani Kalra <[EMAIL PROTECTED]>
> wrote:
>
> >Hi,
> > new Instance() =no of stateles session beans.
> >ejbCreate is called when client call s create()
>
> This is incorrect. ejbCreate is called immediately when a new instance
> is created, which may or may not coincide with the clients ejbCreate
> call. Typically they will *not* coincide.
>
> When a stateless session bean is created the following calls will be
> made *immediately*.
> 1. beanClass.newInstance() - create the instance
> 2. bean.setSessionContext() - set context
> 3. bean.ejbCreate() - call create
>
> After that it can be used by any client any number of times.
>
> (Disclaimer: there *are* implementation options where this is not the
> case, but that would be rather simplistic, and I don't think any current
> vendor does it any other way than the above. Correct me if I'm wrong)
>
> /Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.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".
>
>
>
Visit http://www.NetVarsity.com for online learning

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

Reply via email to