I'm using the following ftp inbound channel adapter from spring-integration-ftp 2.1.4.RELEASE:
I've noticed that 10 task-scheduler threads are being created, I assume for the poller. The initial poll happens on the first thread, each subsequent poll creating another thread, until it hits 10 threads. At that point, it seems the polling all happens on the same thread. This seems sub-optimal. Is there a reason this is happening, or is something else creating the task-scheduler threads?Code:<int-ftp:inbound-channel-adapter id="ftpInboundAdapter" channel="ftpInChannel" session-factory="ftpSessionFactory" local-directory="file:/ftp_temp" local-filename-generator-expression="#this + '_temp.txt'" remote-directory="Inventory/Transform" filename-pattern="*_RESPONSE.txt" delete-remote-files="true" > <int:poller fixed-rate="60000" /> </int-ftp:inbound-channel-adapter>


Reply With Quote