Vahees,

You are right that by caching home references in
a single servlet engine process, you do not have
round robin facilities (at least with our product).
Arguably, if you look up objects every time you
want to use them, the performance benefit of load
balancing ejbcontainers will probably be offset
by the  time taken by the look up itself.

But in most cases, with M clustered web containers
and N clustered ejb containers, it is most likely
(if not always!) that M > N. I.e. Performance of
ejbcontainers is generally not the bottleneck in
a web application *compared* to a webcontainer and
your servlet/jsp engine will most likely start
overheating before your ejbcontainer (At least
this has held true for pretty much every j2ee
project I worked on - comments?)

In which case if you use a solution like IP
clustering, then you will indeed see round
robin load balancing between different servlet
processes (clustered) talking to different
ejb containers (clustered).

As I said earlier in a mail, clustering is
a solution that is vendor specific. How you
want to work with clustering is decision that
should not be taken lightly. Caching etc can
have benefits - only if designed and architect'ed
soundly.

-krish

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nirvana(on behalf of
> vaheesan Selvarajah)
> Sent: Thursday, September 13, 2001 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: IntialContext
>
>
> but krishnan in your code once a ref to a home is obtained then it is kept
> in the hashtable and when another client invokes the same bean then the same
> ref which was held in the hashtable would be returned which stops the
> request to go to the next server in the cluster. right??? just like having a
> lookup in JSP/Servlet init() methods.... hence no posibility for round
> robin...
> Am I right?
>
> r
> vahees

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