I’m using spring integration xml. I have a file inbound channel adapter with a poller of fixed-rate=1000. I’m also using AcceptFileOnlyOnce filter and taskExecutor with multiple threads.
My directory is /apps/emailService/input. Let’s say there’s 10k files in that directory and I restart my application. It will just start and not do anything to the current existing files. Sometimes even incoming files are not processed if there’s already files in the current directory.
Some thoughts I have
- directory=”/apps/emailService/input”, I’m not using the prefix file: and only giving it the directory location. Could this be the cause? Would directory=”file:/apps/emailService/input” fix it?
- Is there some attribute that I need to enable for this issue that might be disabled by default?
- I think I might have to add scan-each-poll=true but will this cause any issues with AcceptFileOnlyOnce or cause any other issues since it’s false by default? Is poll rate 1000 still fine if I make this true since I’m not sure how much of a performance impact it will cause.