You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/05/09 11:30:20 UTC

(camel) 04/05: CAMEL-20743: Load Balancer EIPs to be named with LoadBalancer to be consistent in naming style

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch lb
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 67e54dff86831e849ba1ac0b4c0e9fcc544a0590
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 9 12:57:06 2024 +0200

    CAMEL-20743: Load Balancer EIPs to be named with LoadBalancer to be consistent in naming style
---
 .../ROOT/pages/camel-4x-upgrade-guide-4_7.adoc     | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc
index 17db7a4f4da..2f6577738ee 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_7.adoc
@@ -10,6 +10,56 @@ from both 4.0 to 4.1 and 4.1 to 4.2.
 
 Add default values to `ThrottlingExceptionRoutePolicy` route policy.
 
+=== DSL
+
+The Load Balancer EIP has aligned naming and the following balancers has been renamed in XML and YAML DSL:
+
+|===
+|*Old Name* |*New Name*
+
+| failOver | failOverLoadBalancer
+| random | randomLoadBalancer
+| roundRobin | roundRobinLoadBalancer
+| sticky | stickyLoadBalancer
+| topic | topicLoadBalancer
+| weighted | weightedLoadBalancer
+|===
+
+For example in XML you need to change from:
+
+[source,xml]
+----
+<route>
+  <from uri="direct:start"/>
+  <loadBalance>
+      <failover>
+          <exception>java.io.IOException</exception>
+      </failover>
+      <to uri="direct:x"/>
+      <to uri="direct:y"/>
+      <to uri="direct:z"/>
+  </loadBalance>
+</route>
+----
+
+To:
+
+[source,xml]
+----
+<route>
+  <from uri="direct:start"/>
+  <loadBalance>
+      <failoverLoadBalancer>
+          <exception>java.io.IOException</exception>
+      </failoverLoadBalancer>
+      <to uri="direct:x"/>
+      <to uri="direct:y"/>
+      <to uri="direct:z"/>
+  </loadBalance>
+</route>
+----
+
+
 === camel-spring-security
 
 The `camel-spring-security` component has been updated to improve readiness for Spring Security 7.x. Since Spring Security 5.8 the `AccessDecisionManager` interface and the related cooperating classes have been deprecated in favor of `AuthorizationManager` based patterns.