Details
Description
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.
Attachments
Attachments
Issue Links
- is related to
-
CAMEL-12908 Cannot start route using rest dsl due to a mysterious duplicate routeId
- Resolved
- relates to
-
CAMEL-13724 camel route customized id isn't correct if there are more than one Rest DSL route availble
- Resolved