Re: FileAsyncStressReadLockLockFileTest and maxMessagePerPoll. picking twice

2013-07-04 Thread Afroze
Hi, I want my camel file method to pick 5 files simultaneously and process . using maxMessagesPerPoll its only pick one file .Please can you help me on this. Can you please explain me how it works -- View this message in context: http://camel.465427.n5.nabble.com/FileAsyncStressReadLockLock

Re: FileAsyncStressReadLockLockFileTest and maxMessagePerPoll. picking twice

2013-07-04 Thread ltsallas
Thanks saltniight5, it works like a charm now. Afroze take a look at https://fisheye6.atlassian.com/browse/camel-git/camel-core/src/test/java/org/apache/camel/component/file/stress/FileAsyncStressTest.java?hb=true -- View this message in context: http://camel.465427.n5.nabble.com/FileAsyncS

Re: FileAsyncStressReadLockLockFileTest and maxMessagePerPoll. picking twice

2013-07-03 Thread saltnlight5
It works for me when I use "preMove" into a staging folder first. Try this: from("file:target/filestress?maxMessagesPerPoll=50&preMove=processing&move=archive") -- View this message in context: http://camel.465427.n5.nabble.com/FileAsyncStressReadLockLockFileTest-and-maxMessagePerPoll-tp5735

Re: FileAsyncStressReadLockLockFileTest and maxMessagePerPoll. picking twice

2013-07-03 Thread ltsallas
I ran various org.apache.camel.component.file.stress.FileAsyncStressTest tests and when the initial files in the inbox folder are 2000 and maxMessagesPerPoll is 50, I always get files being processed twice with all readLock options, except rename.Mind that I am using an additional move option to m