Re: random sort in FTP pooling

2011-08-30 Thread Sorin Silaghi
Hi, I did some debugging and I think I figured it out: we also have maxMessagesPerPoll=1 set on that endpoint. This means that the consumer generates a list of 1 elements that it then tries to sort. We are using maxMessagesPerPoll=1 because we have multiple routes connecte

Re: random sort in FTP pooling

2011-08-30 Thread Claus Ibsen
Hi Have you seen this unit test which uses a custom comparator https://svn.apache.org/repos/asf/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FromFtpRemoteFileSorterTest.java On Tue, Aug 30, 2011 at 3:25 PM, Sorin Silaghi wrote: > Hi all, > > >            

random sort in FTP pooling

2011-08-30 Thread Sorin Silaghi
Hi all, We wrote a read lock strategy that allows us to use multiple FTP consumers for the same directory. The problem we are facing now is that when using multiple consumers they all go for the same file in the list. To solve this we would need FTP consumers to go after a random fi