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

camel di does not work for routes discovered from the registry

    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

          Issue Links

            Activity

              People

              • Assignee:
                lb Luca Burgazzoli
                Reporter:
                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