How to send XML JMS message to FTP in Spring integ

2019-06-14 07:03发布

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条回答
淡お忘
2楼-- · 2019-06-14 07:44

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.

Read the documentation.

查看更多
登录 后发表回答