You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tomas Rohovsky (JIRA)" <ji...@apache.org> on 2016/03/29 22:02:25 UTC

[jira] [Comment Edited] (CAMEL-9771) Adding XML routes with spring boot error

    [ https://issues.apache.org/jira/browse/CAMEL-9771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15216738#comment-15216738 ] 

Tomas Rohovsky edited comment on CAMEL-9771 at 3/29/16 8:01 PM:
----------------------------------------------------------------

Adding XML routes will work if you remove the enclosing `beans` element, see:
https://github.com/apache/camel/blob/master/components/camel-spring-boot/src/test/resources/camel/camelContext.xml
https://github.com/apache/camel/blob/master/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/CamelAutoConfigurationTest.java#L156

The question is if it is desired to skip the `beans` element. If not the documentation should be updated to not confuse other people: http://camel.apache.org/spring-boot.html#SpringBoot-AddingXMLroutes


was (Author: trohovsky):
Adding XML routes will work if you remove the enclosing `beans` element, see https://github.com/apache/camel/blob/master/components/camel-spring-boot/src/test/resources/camel/camelContext.xml

The question is if it is desired to skip the `beans` element. If not the documentation should be updated to not confuse other people: http://camel.apache.org/spring-boot.html#SpringBoot-AddingXMLroutes

> Adding XML routes with spring boot error
> ----------------------------------------
>
>                 Key: CAMEL-9771
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9771
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 2.17.0
>         Environment: Mac, Java 8. please visit https://github.com/qiuzhanghua/spring-boot-camel
>            Reporter: qiuzhanghua
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)