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

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jul 1 12:38:33 EDT 2008


     [ http://jira.jboss.com/jira/browse/EJBTHREE-1371?page=all ]

Brian Stansberry updated EJBTHREE-1371:
---------------------------------------

    Fix Version/s: AS 5.0.0.CR2

Adding a Fix Version.

> Default load balance policy for SLSBs should be RoundRobin, not RandomRobin
> ---------------------------------------------------------------------------
>
>                 Key: EJBTHREE-1371
>                 URL: http://jira.jboss.com/jira/browse/EJBTHREE-1371
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: Clustering, proxy
>    Affects Versions: AS 5.0.0.Beta4, AS 4.2.2.GA
>            Reporter: Galder Zamarreno
>         Assigned To: Galder Zamarreno
>             Fix For: AS 5.0.0.CR2
>
>
> 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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list