Rujith de Silva wrote:
> You can use the remote reference
> sessionBean as many times as you want.  But there's no guarantee that
> the remote reference will access the same object within the EJB server
> each time.

*That* I understand.  But Assaf Arkin (back in this thread a couple
messages) was saying something quite different (and utterly
terrifying--well, terrifying within this narrow domain of our jobs as
software folks :-)):
> So pretty much your handle into the bean does not mean there's a bean on
> the other side to handle it. If the server decides to only create 50
> beans, you can still create 51 (and even 500) handles.

("handle" in this context means the same thing as "remote reference" in
your post.)  That is much different from saying that there always will
be *an* instance on the other end of your remote reference/handle, but
it might not be the same one.  That claim doesn't bother me a bit.
Assaf's does.  He goes on to say:
> As long as you
> only use 50 at once everything is fine. Once you get to use number 51
> concurrently, the server runs out of beans in the pool.

That's what bothers me, if it's true.  If this is true, then no, I
*can't* use the sessionBean "as many times as I want", because if the
client load is too high, then my sessionBean reference (which may be
number 51 in Arkin's example above, let's say) won't have a bean
instance to connect to.

(Now, if I were writing the damn server I'd make sure that if I had a
pool of 50 and an extra client request (#51) came in, I'd put him on
hold for a moment and create an extra temporary 5 or 10 instances to
handle the transient load.  I'm hoping to God that ALL EJB servers
actually do this, and that the original NoSuchObjectException that was
thrown that precipitated this whole thread was actually due to something
else.)

Cheers,
Laird

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