mfqms.setScanner(rfs);
mfqms.setFilter(statusFilter);
mfqms.setDirectories(paths);
//make sure all the directories are rescanned each poll
mfqms.setScanEachPoll(false);
mfqms.afterPropertiesSet();
SourcePollingChannelAdapter spca = new SourcePollingChannelAdapter();
spca.setBeanName(platformType + "StatusFileSource");
spca.setBeanFactory(context.getBeanFactory());
spca.setMaxMessagesPerPoll(1);