【问题标题】:Some special Apache Camel functions are not available一些特殊的 Apache Camel 功能不可用
【发布时间】:2009-10-28 13:09:04
【问题描述】:

尝试使用这条路线: 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 骆驼 1.6.1 我检查了 RouteTypes.java。确实没有 aggregate() 方法。 但是,这个文档说它必须工作: http://camel.apache.org/aggregator.html

我做错了什么?

【问题讨论】:

    标签: apache-camel


    【解决方案1】:

    在 Camel 1.x 中,一些 EIP 模式使用了稍微不同的名称。

    它在 1.x 中称为聚合器

    您可以在 Apache Camel 2.0 发行说明中看到不同之处 http://camel.apache.org/camel-200-release.html 在部分 - DSL 的显着变化

    【讨论】:

      猜你喜欢
      • 2011-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-25
      相关资源
      最近更新 更多