You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by br...@apache.org on 2023/11/20 10:21:53 UTC
(activemq-artemis) branch main updated: ARTEMIS-4508 the recovery connection factory ignores useTopologyForLoadBalancing.
This is an automated email from the ASF dual-hosted git repository.
brusdev pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 6bc7b1bc9f ARTEMIS-4508 the recovery connection factory ignores useTopologyForLoadBalancing.
6bc7b1bc9f is described below
commit 6bc7b1bc9f55f3c0a34c9be1a0fd542cd12a113f
Author: Emmanuel Hugonnet <eh...@redhat.com>
AuthorDate: Thu Nov 16 10:14:41 2023 +0100
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 <eh...@redhat.com>
---
.../java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
index 4a7982d384..2436f4816f 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java
@@ -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);