[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-1371) Default load balance policy for SLSBs should be RoundRobin, not RandomRobin

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Mon Sep 15 02:34:26 EDT 2008


     [ https://jira.jboss.org/jira/browse/EJBTHREE-1371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlo de Wolf updated EJBTHREE-1371:
------------------------------------

    Fix Version/s: 1.0.0-Beta4
                       (was: 1.0.0-Beta3)


> Default load balance policy for SLSBs should be RoundRobin, not RandomRobin
> ---------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1371
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1371
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: Clustering, core
>    Affects Versions: AS 4.2.2.GA, AS 5.0.0.Beta4
>            Reporter: Galder Zamarreno
>            Assignee: Galder Zamarreno
>             Fix For: 1.0.0-Beta4
>
>
> Looking at StatelessClusterProxyFactory, it appears that the
> default load balance policy for SLSBs has changed from EJB2. 
> For EJB2s it was Round Robin, whereas EJB3 seems to define 
> it as Random Robin:
> Clustered clustered = (Clustered) ((Advisor)getContainer()).resolveAnnotation(Clustered.class);
> ...
> if (clustered.loadBalancePolicy() == null || clustered.loadBalancePolicy().equals(LoadBalancePolicy.class))
> {
>    lbPolicy = new RandomRobin();
> }
> else
> {
>    lbPolicy = (LoadBalancePolicy) clustered.loadBalancePolicy().newInstance();
> }
> I can't see a reason for us to change the default in between EJB versions.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list