1
我想在骆驼聚合器中读取多个标头。像这样 - header(“h1”)和header(“h2”)。这可能吗?如何在Apache Camel Aggregator关联中加入多个标头
from(sourceQueueUrl)
.aggregate(header("h1") and header("h2") , new MyAggregationStrategy())
.completionSize(3)
.closeCorrelationKeyOnCompletion(2000)
.log("Sending out ${body}")
.aggregationRepository(repository)
.to(sinkQueueUrl);
明白了吧!头(“h1”)。append(头(“h2”))工作正常。 – user3487839
你应该把它作为答案。 – kaqqao