How to send XML JMS message to FTP in Spring integration

时间:2015-11-21 08:52:14

标签: java xml ftp jms spring-integration

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?

1 个答案:

答案 0 :(得分:1)

这个问题一点也不清楚; XML 文本。 FTP适配器可以处理String有效负载,因此您只需在消息中从JMS接收XML并直接将其发送到FTP适配器;没有必要先写入文件。

阅读the documentation