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

Freeman Fang commented on CAMEL-13424:
--------------------------------------

test case added in camel code base to ensure it works

> Rest Component custom routeId is not accessible in processor
> ------------------------------------------------------------
>
>                 Key: CAMEL-13424
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13424
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core, rest
>    Affects Versions: 2.23.1
>         Environment: Apache camel 2.23.x,Tomcat 9, JDK 8
>            Reporter: Maheswara Prasanna Govindasamy
>            Assignee: Freeman Fang
>            Priority: Major
>         Attachments: Camel13424Test.java
>
>
> Rest component route id set in routebuilder is not accessible in processor. 
> Below is the example
> RouteBuilder:
> {{rest("/app").get("/test").id("REST-TEST").to("direct:test").endRest();}}
> from("direct:test").routeId("TEST").id("TEST").process("TestProcessor");
> or
> rest("/app").get("/test").route().routeId("TEST").id("REST-TEST")
> {{Processor:}}
> {{String routeId = exchange.getFromRouteId();}}{{}}
> {{routeId is always random id in case of apache camel 2.23.x but works in 
> 2.22.x versions.}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to