You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/09/03 11:51:00 UTC

[jira] [Commented] (CAMEL-16920) Dump routes does not show uri with endpointdsl

    [ https://issues.apache.org/jira/browse/CAMEL-16920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409464#comment-17409464 ] 

Claus Ibsen commented on CAMEL-16920:
-------------------------------------

Try with 3.11.1 or 3.11.2 when its released

> Dump routes does not show uri with endpointdsl
> ----------------------------------------------
>
>                 Key: CAMEL-16920
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16920
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.11.0
>            Reporter: Guillaume LECROC
>            Priority: Minor
>
> 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 :
> {code:java}
> from(file("/inputDir/"))
> .log("New file: ${header.CamelFileName}")
> .to(file("/outputDir/").getUri());{code}
>  
> Output :
>  
> {noformat}
> 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>
> {noformat}
>  
>  
> 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()"
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)