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
- links to