camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-8363) Camel archetypes for xml dsl should not use camel: prefix
Date Mon, 16 Feb 2015 19:06:11 GMT

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

Claus Ibsen resolved CAMEL-8363.
--------------------------------
    Resolution: Fixed

> Camel archetypes for xml dsl should not use camel: prefix
> ---------------------------------------------------------
>
>                 Key: CAMEL-8363
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8363
>             Project: Camel
>          Issue Type: Improvement
>          Components: tooling
>    Affects Versions: 2.14.1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.14.2, 2.15.0
>
>
> This is verbose and not recommanded, ppl should just use <camelContext> as is
> eg remove <camel:xxx"> in the archetypes
> eg
> {code}
>  <camel:camelContext xmlns="http://camel.apache.org/schema/spring">
>     <!-- here is a sample which processes the input files
>          (leaving them in place - see the 'noop' flag)
>          then performs content based routing on the message using XPath -->
>     <camel:route>
>       <camel:from uri="file:src/data?noop=true"/>
>       <camel:choice>
>         <camel:when>
>           <camel:xpath>/person/city = 'London'</camel:xpath>
>           <camel:log message="UK message"/>
>           <camel:to uri="file:target/messages/uk"/>
>         </camel:when>
>         <camel:otherwise>
>           <camel:log message="Other message"/>
>           <camel:to uri="file:target/messages/others"/>
>         </camel:otherwise>
>       </camel:choice>
>     </camel:route>
>   </camel:camelContext>
> {code}



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

Mime
View raw message