Hi friend.

I have never worked on Weblogic but I guess this is going to be the number
of beans allocated before any client issues a create() method.

As you know the allocation process involves the new operator and can be done
by the container at any time prior to a client create() method, for example,
at start time.

To test this statement write the next line in the constructor:
System.out.println("constructor");

And write the next sentence in the ejbCreate() method of your bean.
System.out.println("create");

Then stop and start your server and take a look at the logs. You should see
10 "constructor" after booting the server. You should see a "create" any
time a client issues a create() method. If your bean is a Stateless Session
Bean then you will see only one "create" per instance, independently of what
is the number of clients requesting create(). That´s because create with no
arguments is non time dependent.

Regards.
----- Original Message -----
From: "Jeyam, David (CTS)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 2:48 PM
Subject: initial-beans-in-free-pool


> Hi,
>    I want to know why is <initial-beans-in-free-pool> used for ?  If i
> specify that 10 beans in free pool how will the bean_instances will be
> available in the Weblogic server start itself ? For this purpose should i
> write some code ?
>
> weblogic-ejb-jar.xml
>
> <caching-descriptor>
>         <max-beans-in-free-pool>20</max-beans-in-free-pool>
>         <initial-beans-in-free-pool>0</initial-beans-in-free-pool>
>         <max-beans-in-cache>100</max-beans-in-cache>
>         <idle-timeout-seconds>10</idle-timeout-seconds>
>         <cache-strategy>Read-Write</cache-strategy>
> </caching-descriptor>
>
> Tx in advance
> David Jeyam
>
> This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.
> If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on this
e-mail is strictly
> prohibited and may be unlawful.
>
>                 Visit us at http://www.cognizant.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".

Reply via email to