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

QuartzComponent with custom Scheduler and multiple contexts requires JMX to be enabled

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.11.2
    • Fix Version/s: 2.12.3, 2.13.0
    • Component/s: camel-quartz
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If you have a custom Scheduler set on the QuartzComponent and multiple camel contexts per scheduler, then you must have JMX enabled for it work right. Ideally, it should not require JMX to be enabled to work correctly. Specifically, QuartzComponent.onCamelContextStarted(CamelContext, boolean) will make a map key that depends on the context's managementName, which is not set if JMX is not enabled. Without a managementName, all contexts with quartz routes end up with a key named CamelQuartzCamelContext - null, and then when the CamelJob executes it will retrieve the wrong context.

      Note we worked around this by injecting a custom LifecycleStrategy that sets the managementName in onContextStart(). But ideally we shouldn't have to do that.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              ndjensen Nathan Jensen

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment