简体   繁体   中英

Apache Camel: Sending exchange message header information to the endpoint

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.

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?

"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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM