Spring集成中如何将XML JMS消息发送到FTP [英] How to send XML JMS message to FTP in Spring integration
问题描述
我正在尝试使用active MQ
向Spring Integration
中的FTP
发送XML
消息.文本消息在接收方Queue
上工作正常,我可以在控制台中打印消息,但是如何将消息发送到FTP
出站适配器,该适配器需要存储在本地目录的XML
file
中?
I'm trying to send XML
message to FTP
in Spring Integration
using active MQ
. Text message is working fine at Receiver Queue
and I can print message in console but how can I send this message to FTP
outbound adapter which need to store in a XML
file
in local directory?
推荐答案
这个问题一点儿也不清楚. XML 是文本. FTP适配器可以处理String有效负载,因此您只需在消息中从JMS接收XML并将其直接发送到FTP适配器即可;无需先写入文件.
This question is not at all clear; XML is text. The FTP adapter can handle a String payload so you can simply receive the XML from JMS in a message and send it to the FTP adapter directly; there is no need to write to a file first.
阅读文档.
这篇关于Spring集成中如何将XML JMS消息发送到FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!