You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jiri Ondrusek (JIRA)" <ji...@apache.org> on 2019/04/15 06:25:00 UTC

[jira] [Reopened] (CAMEL-13413) camel-spring: support more camel-contexts by allowing to define primary=true to it

     [ https://issues.apache.org/jira/browse/CAMEL-13413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Ondrusek reopened CAMEL-13413:
-----------------------------------

> 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)