How can I pass a response from task:scheduled in spring-intgeration to a channel?
<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"/>
Now can I some how read the return response of loadFruits method to a channel outboundComplexChannel
Please provide if any way of doing this
Thanks
Use an inbound-channel-adapter instead
<int:inbound-channel-adapter ref="loadfruits" method="loadFruits"
channel="outboundComplexChannel">
<int:poller cron="0/5 * * * * *"/>
</int:inbound-channel-adapter>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With