We took Sun's ServiceLocator example (at
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html)
and extended it to cache not only the Context and the
Home, but the remote too. Reusing the remote (session
beans only...:) ) has the same effect, and you will
round robin happilly.
//Nicholas
--- Simone Milani <milasx@(protected):
> Hi,
>
> I use 3.2.2RC2 and the default config for round
> robin. to have the call
> span the whole cluster in round robin I need to
> lookup the home every time
> which is not very efficient. I would like to do the
> lookup and the create
> only one and do round robin after that. Is it
> possible?
>
> Thanks!
>
> Simone
> ----- Original Message -----
> From: "Sacha Labourey"
> <sacha.labourey@(protected)>
> To: <jboss-user@(protected)>
> Sent: Wednesday, August 13, 2003 8:28 AM
> Subject: RE: [JBoss-user] Load-Balancing Problems
>
>
> Then that is very strange as with 3.2.x you should
> be able to re-create your
> home/remote and keep balancing correctly.
>
> > -----Original Message-----
> > From: jboss-user-admin@(protected)
> > [mailto:jboss-user-admin@(protected)
> Behalf Of
> > Christofer Dutz
> > Sent: mercredi, 13. ao�t 2003 00:18
> > To: jboss-user@(protected)
> > Subject: Re: [JBoss-user] Load-Balancing Problems
> >
> >
> > I am using 3.2.2RC2 ...
> >
> > Chris
> >
> > Sacha Labourey wrote:
> >
> > >... Or use 3.2.x which removes this issue.
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: jboss-user-admin@(protected)
> > >>[mailto:jboss-user-admin@(protected)]
> On Behalf Of
> > >>Adrian Brock
> > >>Sent: mardi, 12 ao�t 2003 17:50
> > >>To: jboss-user@(protected)
> > >>Subject: Re: [JBoss-user] Load-Balancing
> Problems
> > >>
> > >>
> > >>You are probably doing sessionHome.create() on
> every request?
> > >>
> > >>This creates a new remote interface proxy, which
> will
> > >>round-robin all servers. However if you only do
> one
> > >>invocation it will always use the first server
> and never get
> > >>to the others.
> > >>
> > >>You can get similar problems with other patterns
> in your
> > >>RemoteInterface usage depending upon how many
> servers you have.
> > >>
> > >>One simple solution is to use RandomRobin rather
> than
> > >>RoundRobin as the load balancing policy.
> > >>
> > >>Regards,
> > >>Adrian
> > >>
> > >>On Tue, 2003-08-12 at 10:41, Christofer Dutz
> wrote:
> > >>
> > >>
> > >>>Hi,
> > >>>
> > >>>I am having some Problems with load-balancing
> in JBoss.
> > >>>All Beans are set to use the RoundRobin
> Load-Balancing
> > strategy and
> > >>>the
> > >>>cluster seems to work like a charm.
> > >>>I setup the HA-JNDI to work on Port 1100 and
> setup the
> > >>>
> > >>>
> > >>client to use
> > >>
> > >>
> > >>>this port. Everything seems to work fine,
> except one thing.
> > >>>If I watch the load of the cluster-machines
> with "top" I
> > >>>
> > >>>
> > >>can see the
> > >>
> > >>
> > >>>machine that is directly accessed by the
> Client-Application
> > >>>has a load of 100% the other cluster nodes then
> are only
> > >>>
> > >>>
> > >>30%. Mabe I'm
> > >>
> > >>
> > >>>wrong, but I think that it could be, that the
> client proxy
> > >>>is doing no load-balancing at all and that the
> 30% are just
> > >>>
> > >>>
> > >>for syncing.
> > >>
> > >>
> > >>>Any Ideas of how I could balance the load over
> all nodes?
> > >>>Any help is realy appreciated.
> > >>>
> > >>>Christofer Dutz
> > >>>
> > >>>
> > >>>
> > >>>
> >
>
>>>-------------------------------------------------------
> > >>>This SF.Net email sponsored by: Free pre-built
> ASP.NET
> > >>>
> > >>>
> > >>sites including
> > >>
> > >>
> > >>>Data Reports, E-commerce, Portals, and Forums
> are available now.
> > >>>Download today and enter to win an XBOX or
> Visual Studio .NET.
> > >>>
> > >>>
> > >>>
> > >>http://aspnet.click->
> > url.com/go/psa00100003ave/direct;at.aspnet_072303_
> > >>
> > >>
> > >>>01/01
> > >>>_______________________________________________
> > >>>JBoss-user mailing list
> > >>>JBoss-user@(protected)
> >
>
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >>>
> > >>>
> > >>
> >
>
>>-------------------------------------------------------
> > >>This SF.Net email sponsored by: Free pre-built
> ASP.NET sites
> > >>including Data Reports, E-commerce, Portals, and
> Forums are
> > >>available now. Download today and enter to win
> an XBOX or
> > >>Visual Studio .NET.
> >
>
>>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> > >>
> > >>
> > >_072303_01/01
> > >_______________________________________________
> > >JBoss-user mailing list
> > >JBoss-user@(protected)
> >
>
>https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
>-------------------------------------------------------
> > >This SF.Net email sponsored by: Free pre-built
> ASP.NET sites
> > including
> > >Data Reports, E-commerce, Portals, and Forums are
> available now.
> > >Download today and enter to win an XBOX or Visual
> Studio .NET.
> >
>
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspne
>
=== message truncated ===
=====
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
nwhitehe@(protected)
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
JBoss-user mailing list
JBoss-user@(protected)
https://lists.sourceforge.net/lists/listinfo/jboss-user