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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1, 3.1.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      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

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment