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

camel di does not work for routes discovered from the registry

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.0.0
    • 3.0.1, 3.1.0
    • None
    • None
    • Unknown

    Description

      the method BaseMainSupport::loadRouteBuilders is in charge of performing Camel's DI but in BaseMainSupport::postProcessCamelContext is invoked before additional routes are discovered:

      // try to load the route builders
       loadRouteBuilders(camelContext);
      // then configure and add the routes
      RoutesConfigurer configurer = new RoutesConfigurer(routesCollector, routeBuilders);
      configurer.configureRoutes(camelContext, mainConfigurationProperties);
      

      Injection should happen after all the routes have been discovered

      Attachments

        Activity

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

          People

            lb Luca Burgazzoli
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                Slack

                  Issue deployment