Spring集成中如何将XML JMS消息发送到FTP [英] How to send XML JMS message to FTP in Spring integration

查看:125
本文介绍了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.

阅读文档.

这篇关于Spring集成中如何将XML JMS消息发送到FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆