Apache的骆驼:发送Exchange邮件头信息到端点 [英] Apache Camel: Sending exchange message header information to the endpoint

查看:191
本文介绍了Apache的骆驼:发送Exchange邮件头信息到端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我送从SEDA队列中的XML JMS队列。我在交易所的头有些metadeta,我想传递给JMS队列。

I am sending a xml from a seda queue to a JMS queue. I have some metadeta in exchange's header which I want to pass to the JMS queue.

我必须明确地得到交换对象的报头中的元数据,然后将其设置为XML?或者是有无论如何,如果骆驼能做到开箱?

Do I have to explicitly get the metadata from exchange object's header, Then set it to the xml? Or Is there anyway if Camel can do it out of the box?

推荐答案

将其设置为XML?骆驼将放置头充当​​骆驼交换头将自动转换为JMS属性。应该没有涉及XML。如果你需要的头被放置在XML主体,则需要手动完成。

"set it to the XML"? Camel will place the headers as camel exchange headers that will be converted automatically to JMS properties. There should be no XML involved. If you need the headers to be placed in the XML body, you need to do this manually.

这篇关于Apache的骆驼:发送Exchange邮件头信息到端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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