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

camelContext.getManagedCamelContext returns null in 2.18+

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.18.0, 2.18.1, 2.18.2, 2.18.3, 2.18.4, 2.19.0, 2.19.1
    • None
    • None
    • Unknown
    • Regression

    Description

      I have created an example project at https://github.com/henrik242/camel218jmx that shows the problem:

      SomeTest shows how camelContext.getManagementName() is null in 2.18.x when fetched in InitizializingBean.afterPropertiesSet(), and when delivered from a Bean. 2.17.7 does not have this problem.

      If I have an Autowired camelContext in the test, then getManagementName() returns the proper name.

      The offending commit is https://github.com/apache/camel/commit/1a4e34960fb6953bb804717a728c294f27108a4f , but I can't see why it creates trouble.

      Mailing list thread: http://camel.465427.n5.nabble.com/Why-is-JMX-gone-after-upgrading-to-Camel-2-18-x-tt5806793.html

      Attachments

        Activity

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

          People

            davsclaus Claus Ibsen
            monti Henrik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment