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

问题描述:

我正在尝试使用active MQSpring 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.

阅读文档.