hey i am facing an issue.
An endpoint is constructed to poll for modified files in a directory.
Endpoint:
from("file:" +
mainFolderLocation+OUTDATA_OK_FOLDER+"?preMove=./inprogress&move=../done&moveFailed=../error&delay=30000&maxMessagesPerPoll=25"+maxMessages)
After this i which to get the file. Currently i call a processor after the
endpoint:
.bean(RetrieveFileProcessor.class)
In the processor i inject the consumerTemplate
and call the following:
Exchange fileToProcessExchange = consumerTemplate.receive("file:" +
mainFolderLocation + OUTDATA_FOLDER + "?fileName=" + fileName +
"&move=./${date:now:yyyyMMdd}/${file:name}&sendEmptyMessageWhenIdle=true");
But it takes up to about 40 seconds in order to get the file. This causes
after some time read time out exceptions and eventually a server block.
Anyone has a clue what i am doing wrong here?
thnx
Stefaan
--
View this message in context:
http://camel.465427.n5.nabble.com/poll-change-files-in-directory-and-get-file-tp5742792.html
Sent from the Camel - Users mailing list archive at Nabble.com.