Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12044

[quartz2] Duplicate initializaiton of Quartz component

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.20.1
    • 2.21.0
    • None
    • Unknown

    Description

      The quartz2 documentation (http://camel.apache.org/quartz2.html) suggests to define the bean for customizing the component.

      <bean id="quartz" class="org.apache.camel.component.quartz2.QuartzComponent">
        <!-- Property Overrides -->
      </bean>
      

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            kiransg Kiran G
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment