Re: File component consumer to consume files by timestamp based

2013-12-28 Thread rrajen2
The solution for the first route listed above has evolved as below with some issues. Please assist me in fixing it from("file:{{fmsSys.root.File.InProgress.In}}?noop=true&recursive=true&filter=#myInFMSDirectoryFilter&antInclude={{fmsSys.root.ClientFile.Mailbox.AntIncludeDir}}&delay=500").routeId("

Re: File component consumer to consume files by timestamp based

2013-09-30 Thread Claus Ibsen
You can check if its a file or directory, and then always accept directories, and then only file the timestamp on files. There is a file.isDirectory() you can use. On Tue, Oct 1, 2013 at 2:48 AM, rrajen2 wrote: > Thx Claus. > > In the i/p file directory structure data/report/infolder ,it has sev

Re: File component consumer to consume files by timestamp based

2013-09-30 Thread rrajen2
Thx Claus. In the i/p file directory structure data/report/infolder ,it has several zip files underneath it. Say when one of the zip file gets modified, the infolder directory timestamp also accordingly gets modified. So lets say there are 5 zip files in the infolder which was modified 1hr or mor

Re: File component consumer to consume files by timestamp based

2013-09-28 Thread Claus Ibsen
Hi There is a getLastModified method on the generic file instance, you can use in the filter. You can use that to check if its 1 hour old. Just google how to check file last modified in standard java to see how to implement such logic. On Sat, Sep 28, 2013 at 2:40 AM, rrajen2 wrote: > Hi > My