【问题标题】:does Akka manage Camel consumer thread or Camel context manage consumer thread?Akka 管理 Camel 消费者线程还是 Camel 上下文管理消费者线程?
【发布时间】:2013-02-06 02:57:21
【问题描述】:

camel 文档提到 CamelContext 为其消费者管理线程。 Akka 通过 Camel 扩展集成了 Camel。我们知道 Akka 有自己的线程池(dispatcher)。所以问题是:谁管理 Akka Camel 消费者/参与者线程?如果 CamelContext 管理线程,那么如何在 cfg 文件或代码中配置线程池?

【问题讨论】:

    标签: multithreading akka pool consumer


    【解决方案1】:

    所以这里有几个线程在工作。 Camel 为其组件线程管理 ExecutorService,而 Akka Camel 为 Consumer Actors 管理 ExecutorService。运行 Akka Actor 的不是 Camel 线程。

    您在 Akka 配置中配置 Akka Dispatchers,在 Camel 配置中配置 Camel ExecutionServices。

    【讨论】:

      猜你喜欢
      • 2015-09-19
      • 1970-01-01
      • 1970-01-01
      • 2013-11-15
      • 1970-01-01
      • 2016-10-10
      • 1970-01-01
      • 1970-01-01
      • 2011-01-08
      相关资源
      最近更新 更多