Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8854

Does Camel Spring Boot support more CamelContexts?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • Future
    • FIS 2.0
    • FIS-Camel
    • None
    • % %

      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>
      

              jondruse@redhat.com Jiri Ondrusek
              mbasovni Martin Basovnik (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: