Maheswara Prasanna Govindasamy created CAMEL-13424:
------------------------------------------------------
Summary: Rest Component custom route id 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
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.3#76005)