Skip to content

Commit

Permalink
ARTEMIS-4508 the recovery connection factory ignores useTopologyForLo…
Browse files Browse the repository at this point in the history
…adBalancing.

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>
  • Loading branch information
ehsavoie authored and brusdev committed Nov 20, 2023
1 parent 42d99dd commit 6bc7b1b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,7 @@ public ActiveMQConnectionFactory createRecoveryActiveMQConnectionFactory(final C
setParams(cf, overrideProperties);

//now make sure we are HA in any way
cf.setUseTopologyForLoadBalancing(raProperties.isUseTopologyForLoadBalancing());

cf.setReconnectAttempts(0);
cf.setInitialConnectAttempts(0);
Expand Down

0 comments on commit 6bc7b1b

Please sign in to comment.