[
https://issues.apache.org/jira/browse/CAMEL-12044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-12044.
---------------------------------
Resolution: Fixed
Assignee: Claus Ibsen
Fix Version/s: 2.21.0
Thanks docs updated. Notice its the ascii doc as the old wiki doc is deprecated
and not maintained. See top of front page of Camel website
> [quartz2] Duplicate initializaiton of Quartz component
> ------------------------------------------------------
>
> Key: CAMEL-12044
> URL: https://issues.apache.org/jira/browse/CAMEL-12044
> Project: Camel
> Issue Type: Task
> Components: camel-quartz2, documentation
> Affects Versions: 2.20.1
> Reporter: Kiran G
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.21.0
>
>
> The quartz2 documentation (http://camel.apache.org/quartz2.html) suggests to
> define the bean for customizing the component.
> {code:xml}
> <bean id="quartz" class="org.apache.camel.component.quartz2.QuartzComponent">
> <!-- Property Overrides -->
> </bean>
> {code}
> But if the bean is defined with id="quartz" then
> org.apache.camel.impl.DefaultFactoryFinder is not resolving it to the
> component created by Spring. So if a route is defined with "quartz2://..."
> then it ends up creating a new instance of the QuartzComponent.
> However, if you define the bean with id="quartz2" then it
> DefaultFactoryFinder is able to resolve to the instance created by Spring.
> So, either the documentation needs to be updated or the component resolution
> code needs to be fixed.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)