[英]Apache Camel Pass Parameter
can any one let me know how I can pass parameter from "from" to "to". 有谁能让我知道如何将参数从“从”传递到“到”。
from("jetty:http://localhost:8080/processrequest")
.process(inComingRequestProcessor)
.to("restlet:http://callservice.com?id=${id}")
.unmarshal().json(JsonLibrary.Jackson, Data.class)
.beanRef("httpServiceProcessor", "process").log("${body}");
I am getting id from localhost:8080/processrequest and want to pass same as query parameter. 我从localhost:8080 / processrequest获取ID,并希望传递与查询参数相同的ID。
See the FAQ - there is somethings the answers :) 看到常见问题-有一些答案:)
There is a FAQ about dynamic to which explains this and shows how to resolve it: http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html 有一个有关动态的常见问题解答,对此进行了解释并显示了解决方法: http : //camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.