-----Original Message-----
From: Jonathan Bodner <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, March 18, 1999 7:00 PM
Subject: Re: FW: (TO SUN: please clarify) Re: ejbCreate( ) - initialize in
stan ce variables


>> Without pools (or
>> their functional equivalents) we cannot talk about scalable servers.
>
>Couldn't the same thing be achieved via reference-counting?  If you want to
>have a maximum number of a certain EJB, just check to see if you've created
>that many.  If you have, fail the creation of new ones (or wait until the
>number of EJBs falls below a certain threshold).   When ejbRemove() is
>invoked (or maybe ejbPassivate()), reduce the reference count.


That is what I meant by "functional equivalents". Besides, by the time you
implement the reference counting/releasing/waiting logic, you have
implemented pooling without the benefit of memory reuse :-)

Imre

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