Claus Ibsen created CAMEL-8363:
----------------------------------

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

Reply via email to