Skip to content

[backport camel-4.14.x] CAMEL-23587: camel-jt400 - align Exchange header constant names with Camel naming convention#23562

Merged
oscerd merged 1 commit into
apache:camel-4.14.xfrom
oscerd:backport/23470-to-camel-4.14.x
May 28, 2026
Merged

[backport camel-4.14.x] CAMEL-23587: camel-jt400 - align Exchange header constant names with Camel naming convention#23562
oscerd merged 1 commit into
apache:camel-4.14.xfrom
oscerd:backport/23470-to-camel-4.14.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 27, 2026

Backports #23470 to camel-4.14.x. Standard 4_21 → 4_14 guide-file adaptation. Two header values renamed: KEYCamelJt400Key, SENDER_INFORMATIONCamelJt400SenderInformation. mvn test passes on 4.14.x.

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

@oscerd oscerd force-pushed the backport/23470-to-camel-4.14.x branch from 83b9f97 to a45fae0 Compare May 28, 2026 08:47
…Camel naming convention (apache#23470)

Renames the two Exchange header string values in Jt400Constants that were not
in the Camel namespace (KEY, SENDER_INFORMATION) to CamelJt400<Name>,
following the convention used across the rest of the Camel component catalog
and matching the pattern established in CAMEL-23526 (camel-cxf), CAMEL-23522
(camel-mail), CAMEL-23461 (camel-aws-bedrock), CAMEL-23532
(camel-vertx-websocket / camel-atmosphere-websocket / camel-iggy), and
CAMEL-23576 (camel-jira).

- KEY: "KEY" -> "CamelJt400Key" (data-queue key for keyed-data-queue read/write)
- SENDER_INFORMATION: "SENDER_INFORMATION" -> "CamelJt400SenderInformation"

The Java field names are unchanged so routes referencing the constants
symbolically continue to work; routes using the literal string values must be
updated (documented in the 4.21 upgrade guide). The remaining constants
(MESSAGE, MESSAGE_ID, MESSAGE_FILE, MESSAGE_TYPE, MESSAGE_SEVERITY,
MESSAGE_DFT_RPY, MESSAGE_REPLYTO_KEY) were already Camel-prefixed and are
unchanged.

The generated Endpoint DSL header accessors on Jt400HeaderNameBuilder have
been renamed: kEY() -> jt400Key() and senderInformation() ->
jt400SenderInformation().

All existing tests use symbolic constant references and continue to pass.

Tracker: CAMEL-23577

Reported by Claude Code on behalf of Andrea Cosentino

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd force-pushed the backport/23470-to-camel-4.14.x branch from a45fae0 to 812ff3e Compare May 28, 2026 15:01
@oscerd oscerd merged commit 6c564c3 into apache:camel-4.14.x May 28, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant