Thanks for the replies guys.
Actually processing of files is realtime and there is one more process
other than vb script which creates files in source folder so not feasible
with done filename.
Need to try with file consumer options only.
On Mon, Aug 6, 2018 at 9:10 PM, Trilok Agarwal
wrote:
You can make the processes mutually exclusive through setting up a
scheduler by giving a cron expression so that your FTP or File component
would not read files when they are being written, just in case
if processing of your file not real time and copying of file via VB script
is also scheduled.
O
Also you can use "done" files, eg in the VB script you write a 2nd
empty file with a special name, that tells Camel that the other file
is done being copied and ready.
There is some options on Camel file endpoint you can configure for that also.
On Mon, Aug 6, 2018 at 3:54 PM, Claus Ibsen wrote:
Hi
You can configure Camel to only pickup files with a certain file
pattern, or to exclude names with temporary names, etc.
There is a number of different filter options, see its doc.
On Mon, Aug 6, 2018 at 3:52 PM, Hemant Pekhale wrote:
> Hi Claus,
>
> Thanks for the reply.
>
> Yes, I am able t
Hi Claus,
Thanks for the reply.
Yes, I am able to modify the script. But if we do copy the file with
temporary name and then rename, I doubt that there may be lock acquired on
temporary file name already. because my route has no waiting parameter. So
I think it might not be helpful for our case.
Hi
Are you able to modify the VB script so it copies the file using a
temporary name and then rename the file when the copy is done.
It sounds a bit like the problem is that the VB script is currently
still copying the file, while Camel gets a lock on the file, and
attempt to process it.
File loc