【问题标题】:what is the Difference between the camelContext and routeContext in Apache CamelApache Camel中的camelContext和routeContext有什么区别
【发布时间】:2016-09-29 11:49:08
【问题描述】:

Apache Camel 中的 camelContext 和 routeContext 有什么区别?什么时候使用camelContext和routeContext?

【问题讨论】:

    标签: spring apache-camel


    【解决方案1】:

    根据骆驼文档:

    现在可以在<camelContext/> 之外定义路由,您可以在新的<routeContext/> 标记中执行此操作。 <routeContext/>中定义的路由可以被多个<camelContext/>复用。然而,它只是被重用的定义。在运行时,每个 CamelContext 都会根据定义创建自己的路由实例。

    http://camel.apache.org/configuring-camel.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-07
      • 2015-03-21
      • 2017-08-31
      • 2017-05-19
      • 2018-02-14
      • 1970-01-01
      • 2017-03-27
      • 1970-01-01
      相关资源
      最近更新 更多