Passing values between processors in apache camel

前端 未结 4 1052
太阳男子
太阳男子 2020-12-08 07:28

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

  • storing it in the exchange headers
  • us
4条回答
  •  臣服心动
    2020-12-08 07:59

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

    • Meta data inside a route: properties
    • Meta data to/from outside: headers

提交回复
热议问题