ARTEMIS-4508 the recovery connection factory ignores useTopologyForLoadBalancing.

Fixing the creation of the recovery connection factory so that
useTopologyForLoadBalancing is properly set.

Issue: https://issues.apache.org/jira/browse/ARTEMIS-4508

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
This commit is contained in:
Emmanuel Hugonnet 2023-11-16 10:14:41 +01:00 committed by Bruscino Domenico Francesco
parent 42d99dd8f0
commit 6bc7b1bc9f
1 changed files with 1 additions and 0 deletions

View File

@ -1702,6 +1702,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
setParams(cf, overrideProperties);
//now make sure we are HA in any way
cf.setUseTopologyForLoadBalancing(raProperties.isUseTopologyForLoadBalancing());
cf.setReconnectAttempts(0);
cf.setInitialConnectAttempts(0);