如何在 Spring 集成中将 XML JMS 消息发送到 FTP

How to send XML JMS message to FTP in Spring integration

我正在尝试使用 active MQSpring Integration 中的 FTP 发送 XML 消息。短信在 Receiver Queue 上运行良好,我可以在控制台中打印消息,但我如何将此消息发送到 FTP 需要存储在 XML file 中的出站适配器在本地目录?

这个问题一点都不清楚; XML 文本。 FTP 适配器可以处理字符串有效负载,因此您可以简单地从消息中接收来自 JMS 的 XML 并将其直接发送到 FTP 适配器;无需先写入文件。

阅读the documentation