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

oscerd pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-4.18.x by this push:
     new 29627541b7a3 [backport camel-4.18.x] CAMEL-23510: camel-jgroups - 
align Exchange header constant names with Camel naming convention
29627541b7a3 is described below

commit 29627541b7a309de06aef46294c9e7a68c99a558
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu May 14 13:44:22 2026 +0200

    [backport camel-4.18.x] CAMEL-23510: camel-jgroups - align Exchange header 
constant names with Camel naming convention
    
    Cherry-pick of #23209 onto camel-4.18.x.
    
    Rename the Exchange header string values in JGroupsConstants to the Camel
    naming convention (CamelJGroupsDest, CamelJGroupsSrc,
    CamelJGroupsChannelAddress, CamelJGroupsOriginalMessage). The Java field
    names are unchanged so routes referencing the constants symbolically
    continue to work. Routes using the literal string value must be updated.
    
    The original commit also modified camel-4x-upgrade-guide-4_21.adoc, which
    does not exist on camel-4.18.x; the corresponding 4.18 upgrade guide
    entry is added on main via doc-sync PR #23219.
    
    Closes #23213
---
 .../apache/camel/catalog/components/jgroups.json   |  8 ++++----
 .../apache/camel/component/jgroups/jgroups.json    |  8 ++++----
 .../camel/component/jgroups/JGroupsConstants.java  |  8 ++++----
 .../dsl/JGroupsEndpointBuilderFactory.java         | 24 +++++++++++-----------
 4 files changed, 24 insertions(+), 24 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jgroups.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jgroups.json
index dcf75cf8b0a0..167a22d801ca 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jgroups.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jgroups.json
@@ -32,10 +32,10 @@
     "autowiredEnabled": { "index": 5, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "JGROUPS_CHANNEL_ADDRESS": { "index": 0, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Address (org.jgroups.Address) of the 
channel associated with the endpoint.", "constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_CHANNEL_ADDRESS"
 },
-    "JGROUPS_DEST": { "index": 1, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Consumer: The org.jgroups.Address 
instance extracted by org.jgroups.Message.getDest() method of the consumed 
message. Producer: The custom destination org.jgroups.Address of the message to 
be sent.", "constantName": "org.apache.camel.comp [...]
-    "JGROUPS_SRC": { "index": 2, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "org.jgroups.Address", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Consumer : The org.jgroups.Address instance extracted by 
org.jgroups.Message.getSrc() method of the consumed message. Producer: The 
custom source org.jgroups.Address of the message to be sent.", "constantName": 
"org.apache.camel.component. [...]
-    "JGROUPS_ORIGINAL_MESSAGE": { "index": 3, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Message", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The original org.jgroups.Message 
instance from which the body of the consumed message has been extracted.", 
"constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_ORIGINAL_MESSAGE"
 }
+    "CamelJGroupsChannelAddress": { "index": 0, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "org.jgroups.Address", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "Address 
(org.jgroups.Address) of the channel associated with the endpoint.", 
"constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_CHANNEL_ADDRESS"
 },
+    "CamelJGroupsDest": { "index": 1, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Consumer: The org.jgroups.Address 
instance extracted by org.jgroups.Message.getDest() method of the consumed 
message. Producer: The custom destination org.jgroups.Address of the message to 
be sent.", "constantName": "org.apache.camel. [...]
+    "CamelJGroupsSrc": { "index": 2, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Consumer : The org.jgroups.Address 
instance extracted by org.jgroups.Message.getSrc() method of the consumed 
message. Producer: The custom source org.jgroups.Address of the message to be 
sent.", "constantName": "org.apache.camel.compon [...]
+    "CamelJGroupsOriginalMessage": { "index": 3, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "org.jgroups.Message", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The original 
org.jgroups.Message instance from which the body of the consumed message has 
been extracted.", "constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_ORIGINAL_MESSAGE"
 }
   },
   "properties": {
     "clusterName": { "index": 0, "kind": "path", "displayName": "Cluster 
Name", "group": "common", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The name of the JGroups 
cluster the component should connect to." },
diff --git 
a/components/camel-jgroups/src/generated/resources/META-INF/org/apache/camel/component/jgroups/jgroups.json
 
b/components/camel-jgroups/src/generated/resources/META-INF/org/apache/camel/component/jgroups/jgroups.json
index dcf75cf8b0a0..167a22d801ca 100644
--- 
a/components/camel-jgroups/src/generated/resources/META-INF/org/apache/camel/component/jgroups/jgroups.json
+++ 
b/components/camel-jgroups/src/generated/resources/META-INF/org/apache/camel/component/jgroups/jgroups.json
@@ -32,10 +32,10 @@
     "autowiredEnabled": { "index": 5, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "JGROUPS_CHANNEL_ADDRESS": { "index": 0, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Address (org.jgroups.Address) of the 
channel associated with the endpoint.", "constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_CHANNEL_ADDRESS"
 },
-    "JGROUPS_DEST": { "index": 1, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Consumer: The org.jgroups.Address 
instance extracted by org.jgroups.Message.getDest() method of the consumed 
message. Producer: The custom destination org.jgroups.Address of the message to 
be sent.", "constantName": "org.apache.camel.comp [...]
-    "JGROUPS_SRC": { "index": 2, "kind": "header", "displayName": "", "group": 
"common", "label": "", "required": false, "javaType": "org.jgroups.Address", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Consumer : The org.jgroups.Address instance extracted by 
org.jgroups.Message.getSrc() method of the consumed message. Producer: The 
custom source org.jgroups.Address of the message to be sent.", "constantName": 
"org.apache.camel.component. [...]
-    "JGROUPS_ORIGINAL_MESSAGE": { "index": 3, "kind": "header", "displayName": 
"", "group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Message", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "The original org.jgroups.Message 
instance from which the body of the consumed message has been extracted.", 
"constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_ORIGINAL_MESSAGE"
 }
+    "CamelJGroupsChannelAddress": { "index": 0, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "org.jgroups.Address", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "Address 
(org.jgroups.Address) of the channel associated with the endpoint.", 
"constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_CHANNEL_ADDRESS"
 },
+    "CamelJGroupsDest": { "index": 1, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Consumer: The org.jgroups.Address 
instance extracted by org.jgroups.Message.getDest() method of the consumed 
message. Producer: The custom destination org.jgroups.Address of the message to 
be sent.", "constantName": "org.apache.camel. [...]
+    "CamelJGroupsSrc": { "index": 2, "kind": "header", "displayName": "", 
"group": "common", "label": "", "required": false, "javaType": 
"org.jgroups.Address", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Consumer : The org.jgroups.Address 
instance extracted by org.jgroups.Message.getSrc() method of the consumed 
message. Producer: The custom source org.jgroups.Address of the message to be 
sent.", "constantName": "org.apache.camel.compon [...]
+    "CamelJGroupsOriginalMessage": { "index": 3, "kind": "header", 
"displayName": "", "group": "common", "label": "", "required": false, 
"javaType": "org.jgroups.Message", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The original 
org.jgroups.Message instance from which the body of the consumed message has 
been extracted.", "constantName": 
"org.apache.camel.component.jgroups.JGroupsConstants#HEADER_JGROUPS_ORIGINAL_MESSAGE"
 }
   },
   "properties": {
     "clusterName": { "index": 0, "kind": "path", "displayName": "Cluster 
Name", "group": "common", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The name of the JGroups 
cluster the component should connect to." },
diff --git 
a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/JGroupsConstants.java
 
b/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/JGroupsConstants.java
index 9ef48ef41411..e307baaae82b 100644
--- 
a/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/JGroupsConstants.java
+++ 
b/components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/JGroupsConstants.java
@@ -24,24 +24,24 @@ public final class JGroupsConstants {
             Address (`org.jgroups.Address`) of the channel associated with the
             endpoint.""",
               javaType = "org.jgroups.Address")
-    public static final String HEADER_JGROUPS_CHANNEL_ADDRESS = 
"JGROUPS_CHANNEL_ADDRESS";
+    public static final String HEADER_JGROUPS_CHANNEL_ADDRESS = 
"CamelJGroupsChannelAddress";
     @Metadata(description = """
             *Consumer*: The `org.jgroups.Address` instance extracted by
             `org.jgroups.Message`.getDest() method of the consumed message.
             *Producer*: The custom destination `org.jgroups.Address` of the 
message to be sent.""",
               javaType = "org.jgroups.Address")
-    public static final String HEADER_JGROUPS_DEST = "JGROUPS_DEST";
+    public static final String HEADER_JGROUPS_DEST = "CamelJGroupsDest";
     @Metadata(description = """
             *Consumer* : The `org.jgroups.Address` instance extracted by
             `org.jgroups.Message`.getSrc() method of the consumed message.\s
             *Producer*: The custom source `org.jgroups.Address` of the message 
to be sent.""",
               javaType = "org.jgroups.Address")
-    public static final String HEADER_JGROUPS_SRC = "JGROUPS_SRC";
+    public static final String HEADER_JGROUPS_SRC = "CamelJGroupsSrc";
     @Metadata(description = """
             The original `org.jgroups.Message` instance from which the body of 
the
             consumed message has been extracted.""",
               javaType = "org.jgroups.Message")
-    public static final String HEADER_JGROUPS_ORIGINAL_MESSAGE = 
"JGROUPS_ORIGINAL_MESSAGE";
+    public static final String HEADER_JGROUPS_ORIGINAL_MESSAGE = 
"CamelJGroupsOriginalMessage";
 
     private JGroupsConstants() {
 
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JGroupsEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JGroupsEndpointBuilderFactory.java
index d4656526200a..aea6a7d318aa 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JGroupsEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JGroupsEndpointBuilderFactory.java
@@ -420,10 +420,10 @@ public interface JGroupsEndpointBuilderFactory {
          * 
          * Group: common
          * 
-         * @return the name of the header {@code JGROUPS_CHANNEL_ADDRESS}.
+         * @return the name of the header {@code JGroupsChannelAddress}.
          */
-        public String jgroupsChannelAddress() {
-            return "JGROUPS_CHANNEL_ADDRESS";
+        public String jGroupsChannelAddress() {
+            return "CamelJGroupsChannelAddress";
         }
         /**
          * Consumer: The org.jgroups.Address instance extracted by
@@ -435,10 +435,10 @@ public interface JGroupsEndpointBuilderFactory {
          * 
          * Group: common
          * 
-         * @return the name of the header {@code JGROUPS_DEST}.
+         * @return the name of the header {@code JGroupsDest}.
          */
-        public String jgroupsDest() {
-            return "JGROUPS_DEST";
+        public String jGroupsDest() {
+            return "CamelJGroupsDest";
         }
         /**
          * Consumer : The org.jgroups.Address instance extracted by
@@ -450,10 +450,10 @@ public interface JGroupsEndpointBuilderFactory {
          * 
          * Group: common
          * 
-         * @return the name of the header {@code JGROUPS_SRC}.
+         * @return the name of the header {@code JGroupsSrc}.
          */
-        public String jgroupsSrc() {
-            return "JGROUPS_SRC";
+        public String jGroupsSrc() {
+            return "CamelJGroupsSrc";
         }
         /**
          * The original org.jgroups.Message instance from which the body of the
@@ -463,10 +463,10 @@ public interface JGroupsEndpointBuilderFactory {
          * 
          * Group: common
          * 
-         * @return the name of the header {@code JGROUPS_ORIGINAL_MESSAGE}.
+         * @return the name of the header {@code JGroupsOriginalMessage}.
          */
-        public String jgroupsOriginalMessage() {
-            return "JGROUPS_ORIGINAL_MESSAGE";
+        public String jGroupsOriginalMessage() {
+            return "CamelJGroupsOriginalMessage";
         }
     }
     static JGroupsEndpointBuilder endpointBuilder(String componentName, String 
path) {

Reply via email to