Andrea Cosentino created CAMEL-24282:
----------------------------------------
Summary: Resolve dynamic-URI property placeholders at build time
instead of per message
Key: CAMEL-24282
URL: https://issues.apache.org/jira/browse/CAMEL-24282
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
The dynamic-URI EIPs (toD, recipientList, routingSlip, dynamicRouter, enrich,
pollEnrich) resolve property placeholders on the recipient URI on every
message, via SendDynamicProcessor ->
DefaultCamelContextExtension.normalizeUri() ->
EndpointHelper.resolveEndpointUriPropertyPlaceholders().
The property placeholders in a dynamic-URI template are fixed at design time
and do not change per message, so they can be resolved once at build time in
the reifier instead of repeatedly at runtime.
Suggested: resolve the placeholders on the static template in ToDynamicReifier
and the sibling reifiers, and use a normalizeUri variant that skips placeholder
resolution on the per-message path. Existing property-placeholder support in
dynamic URIs (CAMEL-15087) is preserved.
_Filed by Claude Code on behalf of Andrea Cosentino._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)