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

XmlRouteParser does not handle usage of xml namespace prefix for camel

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.22.0
    • Fix Version/s: 2.22.1, 2.23.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      for instance with this file content, using the org.apache.camel.parser.XmlRouteParser.parseXmlRouteEndpoints(InputStream, String, String, List<CamelEndpointDetails>) method will not find the endpoint

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
      <camel:camelContext id="camel" xmlns:camel="http://camel.apache.org/schema/spring">
      <camel:endpoint uri="timer:timerName?delay=p"/>
      <camel:route id="a route">
      <camel:from id="_from1" uri="timer:timerName?delay=1000"/>
      <camel:to id="_to1" uri="direct:drink"/>
      </camel:route>
      </camel:camelContext>
      </beans>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                apupier Aurélien Pupier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: