3
votes

I am new to Spring framework and I am doing one simple project using spring and got stuck in between. In my project I am reading the file from directory using spring poller. And then processing that file through various channels and sending it to the queue. But problem is that "file-inbound-channel-adapter" (which I'm using ) is reading only one file at a time. So I need a solution which will read and process multiple files at a time. Is there any way to implement multithreading in spring integration. Thank you.

1
hope this helpsBond - Java Bond

1 Answers

4
votes

Add a task-executor to the poller; see the documentation.

You can control the concurrency with max-messages-per-poll and the task executor's pool size. See the complete poller configuration details for more information.