问题
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:
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.
来源:https://stackoverflow.com/questions/33841514/how-to-send-xml-jms-message-to-ftp-in-spring-integration