在Apache的骆驼处理器之间传递值 [英] Passing values between processors in apache camel

查看:131
本文介绍了在Apache的骆驼处理器之间传递值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Apache的骆驼,其中哪些是从交换处理器值传递给另外一个(为什么)的最佳方式:

In apache camel, which of those is the best way to pass values from an exchange processor to another (and why) :


  • 将其存储在交换标题

  • 使用的setProperty 方法,同时建设的路线。

  • 另一种方式..

  • storing it in the exchange headers
  • using the setProperty method while building the route.
  • another way..

推荐答案

属性和头是pretty大同小异。标头,但是,转换到/从协议的特定报头的某些组件,例如JMS。因此,

Properties and headers are pretty much the same. Headers are, however, converted to/from protocol specific headers on certain components, such as Jms. So,


  • 路线内元数据:属性

  • 元数据到/来自外部:头文件

这篇关于在Apache的骆驼处理器之间传递值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆