如何将来自task:scheduled in 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的返回响应
如果有这样做的方法,请提供
谢谢
发布于 2013-07-13 02:54:12
请改用入站通道适配器
<int:inbound-channel-adapter ref="loadfruits" method="loadFruits"
channel="outboundComplexChannel">
<int:poller cron="0/5 * * * * *"/>
</int:inbound-channel-adapter>https://stackoverflow.com/questions/17621713
复制相似问题