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
質問
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.
解決
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