Thanks a lot.

Nithi.

-----Original Message-----
From: Lennart Petersson [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 28, 2000 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Stateless Session Beans and instances


Hi!

"Nithi, Rajan (GEP)" skrev:

> Hi,
>
> I have a basic question regarding Stateless Session Beans.
>
> I understand the container creates a pool of Stateless Session Beans.
> Which means the container creates a no of Stateless Session Bean
instances.
> So, in that case, is the following statement true ?
>
> No of times ejbCreate is executed on the container = No of Stateless
Session
> Beans instances created by the container.
>
> We are using NAS 4.0 and I found the ejbCreate method of our Stateless
> Session
> Bean is fired only once. So, does it mean that the container has only one
> instance
> of the Stateless Session Bean in the memory.

Yep :-) That's the nice one with Stateless Session Beans. The container will
not
create more instances than what is needed due to client workload. If you are
increasing the number of clients calling your Stateless Session Bean then
you
will se more call to ejbCreate since there will sometimes be no free
instance
for the container to use. This means that ejbCreate (and ejbRemove) will not
automatically map to a container create/remove of a Stateless Session Bean
instance.

//Lennart

________________________________
Lennart Petersson
Benefit AB
Tynäsgatan 14
S-652 24 Karlstad
Phone: +46 (0)54 177253
mailto:[EMAIL PROTECTED]
Yahoo! Messenger, my nickname is: en_grillad_special
http://www.benefit.se

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

Reply via email to