尝试使用此路线: from(" activemq:profiles")。aggregate(header(" cheese"))。batchSize(30).bean(ProfilesQueueService," saveContacts")

失败:

没有方法签名:org.apache.camel.model.RouteType.aggregate()适用于参数类型:(org.apache.camel.builder.ValueBuilder)值:[header(cheese)]

使用apache camel 1.6.1 我检查了RouteTypes.java。确实没有aggregate()方法。 但是,这个文档说它必须工作: http://camel.apache.org/aggregator.html

我做错了什么?

有帮助吗?

解决方案

在Camel 1.x中,一些EIP模式的名称略有不同。

在1.x

中称为聚合器

您可以在Apache Camel 2.0发行说明中看到差异 http://camel.apache.org/camel-200-release.html 在本节 - DSL的显着变化

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top