A lot of "AutoConfiguration" classes require only single CamelContext:
2016-11-10 16:59:26 ERROR LoggingFailureAnalysisReporter:42 - *************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of method configureDirectComponent in org.apache.camel.component.direct.springboot.DirectComponentAutoConfiguration required a single bean, but 2 were found: - message-bus-pattern: defined in null - message-bus-pattern-receiver: defined in null Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
Is it possible to do something like this?
<beans xmlns="http://www.springframework.org/schema/beans"> <camelContext id="context1" xmlns="http://camel.apache.org/schema/spring" primary="true"> ... </camelContext> <camelContext id="context2" xmlns="http://camel.apache.org/schema/spring"> ... </camelContext> </beans>
- links to