spring integration - read a remote file line by line
I am trying to read a remote file line by line, using spring integration. Using the spring documentation found here I have set up my project to poll for the file and transfer it via sftp when it is found. I am stuck on how to go about reading the file contents one line at a time. Here is my inbound channel adapter setup that currently works to pull in files. <int-sftp:inbound-channel-adapter id="sftpAdapterAutoCreate" session-factory="sftpSessionFactory" channel="receiveChannel" filename-pattern="*.txt" remote-directory="/home/springftp" preserve-timestamp="true" local-directory="file:C: