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

Does Camel Spring Boot support more CamelContexts?

    XMLWordPrintable

Details

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

    Description

      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>
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: