Apache camel Apache通过restlet将参数传递到multicust uri
GroupedExchangeAgregationStrategy的例子对我来说很好。但现在的挑战是将param值传递给uri的。下面是代码 fromrestlet:http://localhost:8089/createCustomer/{foo} .enrichdirect:serviceFacade .processnew处理器{…} 终止 fromdirect:serviceFacade .Multicast新组交换聚合策略.parallelProcessing .enrichrestlet:http://localhost:8080/CamelRest/rest/restService/addressInfo/${header.foo}.enrichrestlet:http://localhost:8080/CamelRest/rest/restService/accountInfo/${header.foo} 终止 我收到一条错误消息: 在Exchange中找不到键为Header.foo的标头。交换[信息: [正文为空]]Apache camel Apache通过restlet将参数传递到multicust uri,apache-camel,dsl,restlet,Apache Camel,Dsl,Restlet,GroupedExchangeAgregationStrategy的例子对我来说很好。但现在的挑战是将param值传递给uri的。下面是代码 fromrestlet:http://localhost:8089/createCustomer/{foo} .enrichdirect:serviceFacade .processnew处理器{…} 终止 fromdirect:serviceFacade .Multicast新组交换聚合策略.parallelProcessing .enrichrestl
最后我把它弄对了
from("direct:serviceFacade")
.multicast(new GroupedExchangeAggregationStrategy()).parallelProcessing()
// .bean(RecipientListBean.class, "route")
.enrich("restlet:http://localhost:8080/CamelRest/rest/restService/addressInfo/{foo}")
.enrich("restlet:http://localhost:8080/CamelRest/rest/restService/accountInfo/{foo}")
.end();
那就太神奇了