camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From St├ęphane Deraco <steph...@deraco.fr>
Subject Re: I want to transfer more than 1000 files. But after transferring all the file camel re-transfer the files again.
Date Tue, 11 Mar 2014 08:06:02 GMT
Hi,

If you take a look at
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/idempotent/FileIdempotentRepository.html#fileIdempotentRepository(java.io.File),
you can see that by default, the file based idempotent repository is for
1000 entries.

Maybe you can try with this method: fileIdempotentRepository(File
fileStore, int cacheSize) with a size bigger than 1000?

St├ęphane


2014-03-11 8:41 GMT+01:00 skasish <asish_sam@hotmail.com>:

> I want to transfer more than 1000 files.
>
> But after transferring all the file camel re-transfer the files again.
>
> I have set the option on the ftp endpoint: idempotentRepository.
>
> from("
> ftp://admin@10.1.5.140:2121/MF?noop=true&password=admin&passiveMode=true&localWorkDirectory=D:/tmp
> ")
>
>
> .idempotentConsumer(header(Exchange.FILE_NAME_ONLY),FileIdempotentRepository.fileIdempotentRepository(new
> File("D:\\tmp\\cachedir", "idem.txt"))).to("file://D:/temp/xxx");
>
> Also there is a duplicate entry in  idempotent file.
>
> If the no. of file less than 1000, it behaves OK.
>
> Can any one tell me the solution
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/I-want-to-transfer-more-than-1000-files-But-after-transferring-all-the-file-camel-re-transfer-the-fi-tp5748606.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message