java – 对通道spring-integration的预定任务响应

weixin_38080567 2019-09-12 01:38:47
如何从任务传递响应:在spring-intgeration中安排到某个频道? <task:scheduled-tasks> <task:scheduled ref="loadFruits" method="loadFruits" cron="0/5 * * * * *"/> </task:scheduled-tasks> <bean id="loadFruits" class="com.data.taskschedulers.LoadFruits"/> <int:channel id="outboundComplexChannel"/> 现在,我可以将有关如何读取loadFruits方法的返回响应读取到通道outboundComplexChannel 如果有任何方法,请提供 谢谢
...全文
19 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_38094418 2019-09-12
  • 打赏
  • 举报
回复
请改用入站通道适配器 <int:inbound-channel-adapter ref="loadfruits" method="loadFruits" channel="outboundComplexChannel"> <int:poller cron="0/5 * * * * *"> </int:inbound-channel-adapter>

433

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧