[
https://issues.apache.org/jira/browse/CAMEL-13413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16816259#comment-16816259
]
Andrea Cosentino commented on CAMEL-13413:
------------------------------------------
I think it would make sense, but i'd like to hear the feedback from [~davsclaus]
> camel-spring: support more camel-contexts by allowing to define primary=true
> to it
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-13413
> URL: https://issues.apache.org/jira/browse/CAMEL-13413
> Project: Camel
> Issue Type: Improvement
> Components: camel-spring
> Affects Versions: 3.0.0
> Reporter: Jiri Ondrusek
> Priority: Major
>
> Make possible to define more camelContexts by allowing usage of spring
> attribute primary=true.
> {code:xml}
> <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>
> {code}
> In case that primary is not set to true, executions ends with error:
> {code}
> ***************************
> 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:
> ...
> {code}
> How to reproduce:
> Add second cotext to quockstart quickstart
> https://github.com/fabric8-quickstarts/spring-boot-camel-xml and execute by
> command mvn spring-boot:run
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)