]
Carlo de Wolf updated EJBTHREE-1371:
------------------------------------
Fix Version/s: 1.0.0-Beta2
(was: 1.0.0-Beta1)
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-Beta2
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: