Claus Ibsen created CAMEL-27962:
-----------------------------------
Summary: camel-smooks: endpoint options are bound to the processor
only, lazyStartProducer has no effect
Key: CAMEL-27962
URL: https://issues.apache.org/jira/browse/CAMEL-27962
Project: Camel
Issue Type: Bug
Components: camel-smooks
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-smooks for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31198).
This is a separate problem of the component; the descriptions change only
documents the current behavior.
h4. The endpoint options are bound to the SmooksProcessor only
{{SmooksComponent.createEndpoint}} / configureSmooksProcessor call
setProperties(smooksProcessor, parameters), which binds reportPath,
allowExecutionContextFromHeader, allowExternalEntities and lazyStartProducer to
the SmooksProcessor and removes them from the parameter map, so
setProperties(endpoint, ...) never sees them. lazyStartProducer=true does not
make the producer lazy (DefaultEndpoint.isLazyStartProducer() stays false; the
processor only skips its warm-up, and the config is still loaded in
SmooksEndpoint.doStart, so a missing config still fails route startup). The
endpoint getters return the defaults, so JMX and the dev consoles show wrong
values.
Proposed change: bind the parameters to the endpoint only and copy them into
the SmooksProcessor in SmooksEndpoint.doInit (or createProducer); start the
processor from the producer so lazyStartProducer also delays loading the config.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)