camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skasish <asish_...@hotmail.com>
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 09:00:20 GMT
Claus,

Thanks for your reply.

I have set the higher value. There is no duplicate entry in the idempotent
file.

But the camel is also trying to transfer after transferred all the files.

from("ftp://admin@10.1.5.140:2121/MF?noop=true&password=admin&passiveMode=true&localWorkDirectory=D:/tmp&maxMessagesPerPoll=10000").
          	
            
idempotentConsumer(header(Exchange.FILE_NAME_ONLY),FileIdempotentRepository.fileIdempotentRepository(new
File("D:\\tmp\\cachedir", "idem.txt"),5120,5120 )).to("file://D:/temp/xxx");           	
           	

Log.

14:23:58.559 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - About to process file:
RemoteFile[PG_pdboh02_apl_20140113_b.lst] using exchange:
Exchange[PG_pdboh02_apl_20140113_b.lst]
14:23:58.559 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.p.i.IdempotentConsumer - Ignoring duplicate message with id:
PG_pdboh02_apl_20140113_b.lst for exchange:
Exchange[PG_pdboh02_apl_20140113_b.lst]


BUT:

If the no. files less than 1000

the log is

14:29:13.826 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG org.apache.camel.util.FileUtil - Tried 1 to rename file:
D:\tmp\GT_gobdbl02_apl_20140211_b.lst to:
D:\temp\xxx\GT_gobdbl02_apl_20140211_b.lst with result: true
14:29:13.826 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.GenericFileProducer - Wrote
[D:\temp\xxx\GT_gobdbl02_apl_20140211_b.lst] to
[Endpoint[file://D:/temp/xxx]]
14:29:13.826 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.GenericFileOnCompletion - Done processing file:
RemoteFile[GT_gobdbl02_apl_20140211_b.lst] using exchange:
Exchange[GT_gobdbl02_apl_20140211_b.lst]
14:29:14.435 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - Took 0.094 seconds to poll: MF
14:29:15.075 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - Took 0.124 seconds to poll: MF
14:29:15.731 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - Took 0.141 seconds to poll: MF
14:29:16.402 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - Took 0.156 seconds to poll: MF
14:29:17.011 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - Took 0.094 seconds to poll: MF
14:29:17.636 [Camel (camel-1) thread #0 - ftp://admin@10.1.5.140:2121/MF]
DEBUG o.a.c.c.file.remote.FtpConsumer - Took 0.109 seconds to poll: MF



--
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-tp5748606p5748618.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message