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

Dump routes does not show uri with endpointdsl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11.0
    • 3.11.2, 3.12.0
    • came-core
    • None
    • Unknown

    Description

      In the example below, if I print the route at startup with "camel.springboot.dump-routes=true", the "from" URI is not set, but the "to" URI is set because I call "endpoint.getURI()"

       

      Input :

      from(file("/inputDir/"))
      .log("New file: ${header.CamelFileName}")
      .to(file("/outputDir/").getUri());

       

      Output :

       

      2021-09-03 12:29:03.485 INFO 27620 --- [ main] o.apache.camel.impl.DefaultCamelContext :
      <routes xmlns="http://camel.apache.org/schema/spring">
      <route id="route1">
       <from/>
       <log id="log3" message="New file: ${header.CamelFileName}"/>
       <to id="to1" uri="file:///outputDir/"/>
       </route>
      </routes>
      

       

       

      I don't know if it's a bug or not, but in the documentation (https://camel.apache.org/manual/latest/Endpoint-dsl.html) the example does not specify to call "getURI()"

       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            gulecroc Guillaume LECROC
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: