【问题标题】:scheduled task response to channel spring-integration计划任务响应通道 spring-integration
【发布时间】:2013-07-11 09:32:24
【问题描述】:

如何将 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 的返回响应

如果有任何方法请提供这样做

谢谢

【问题讨论】:

    标签: java spring spring-integration


    【解决方案1】:

    改用入站通道适配器

    <int:inbound-channel-adapter ref="loadfruits" method="loadFruits"
            channel="outboundComplexChannel">
        <int:poller cron="0/5 * * * * *"/>
    </int:inbound-channel-adapter>
    

    【讨论】:

    • 一个小错字:)
    猜你喜欢
    • 2018-11-22
    • 2021-11-20
    • 2014-06-21
    • 1970-01-01
    • 1970-01-01
    • 2021-04-02
    • 2015-01-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多