[
https://issues.apache.org/jira/browse/CAMEL-27823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27823:
--------------------------------
Description:
Found while improving the option descriptions of camel-quartz for CAMEL-23832
(commit
https://github.com/apache/camel/commit/f9114180c5e7be882210730be747beb6cfc38cb8,
pull request https://github.com/apache/camel/pull/31140).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. Endpoint options write the component fields
In {{QuartzComponent.createEndpoint}} the endpoint options
prefixJobNameWithEndpointId and autoStartScheduler set the component fields, so
a value on one endpoint applies to every quartz endpoint created after it.
Proposed change: keep the value per endpoint (createTriggerKey); make
autoStartScheduler component-only or document it.
h4. 2. usingFixedCamelContextName=true fails when the management name differs
{{QuartzHelper.updateJobDataMap}} stores camelContext.getName(), while
storeCamelContextInQuartzContext registers the context under the management
name; CamelJob then fails with "No CamelContext could be found with name".
Proposed change: register under both names, or look up by both.
_Claude Code on behalf of davsclaus_
was:
Found while improving the option descriptions of camel-quartz for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31140).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. Endpoint options write the component fields
In {{QuartzComponent.createEndpoint}} the endpoint options
prefixJobNameWithEndpointId and autoStartScheduler set the component fields, so
a value on one endpoint applies to every quartz endpoint created after it.
Proposed change: keep the value per endpoint (createTriggerKey); make
autoStartScheduler component-only or document it.
h4. 2. usingFixedCamelContextName=true fails when the management name differs
{{QuartzHelper.updateJobDataMap}} stores camelContext.getName(), while
storeCamelContextInQuartzContext registers the context under the management
name; CamelJob then fails with "No CamelContext could be found with name".
Proposed change: register under both names, or look up by both.
_Claude Code on behalf of davsclaus_
> camel-quartz: endpoint options change the component,
> usingFixedCamelContextName fails with a custom management name
> -------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27823
> URL: https://issues.apache.org/jira/browse/CAMEL-27823
> Project: Camel
> Issue Type: Bug
> Components: camel-quartz
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-quartz for CAMEL-23832
> (commit
> https://github.com/apache/camel/commit/f9114180c5e7be882210730be747beb6cfc38cb8,
> pull request https://github.com/apache/camel/pull/31140).
> These are separate problems of the component; the descriptions change only
> documents the current behavior.
> h4. 1. Endpoint options write the component fields
> In {{QuartzComponent.createEndpoint}} the endpoint options
> prefixJobNameWithEndpointId and autoStartScheduler set the component fields,
> so a value on one endpoint applies to every quartz endpoint created after it.
> Proposed change: keep the value per endpoint (createTriggerKey); make
> autoStartScheduler component-only or document it.
> h4. 2. usingFixedCamelContextName=true fails when the management name differs
> {{QuartzHelper.updateJobDataMap}} stores camelContext.getName(), while
> storeCamelContextInQuartzContext registers the context under the management
> name; CamelJob then fails with "No CamelContext could be found with name".
> Proposed change: register under both names, or look up by both.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)