]
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: