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.