문제

How can I access the "routeId" in Apache Camel 2.10?

I see that the property exists from camel 2.11.

From Simple Expression Langauge docs

${routeId}
String
Camel 2.11: Returns the id of the current route the Exchange is being routed. 

Is there another easy hack available?

도움이 되었습니까?

해결책

No, you would need to do a little piece of code to get the route id. You can check the source code of Camel 2.11 onwards to see how Camel does it in that function.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top