Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8363

Camel archetypes for xml dsl should not use camel: prefix

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 2.14.2, 2.15.0
    • tooling
    • None
    • Unknown

    Description

      This is verbose and not recommanded, ppl should just use <camelContext> as is

      eg remove <camel:xxx"> in the archetypes

      eg

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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: