Em sex., 12 de jan. de 2024 às 13:42, Jan Bares, WOOD & Co.
<jan.ba...@wood.cz> escreveu:
>
> we already use everything you mension bellow on files that *do not change*. 
> My current requirement is to read file that *changes* over the time, I can 
> imagine that we can handle appends with Camel but we need also to handle and 
> *detect* (e.g. set special header) , when the file is *truncated*.

There is a component to watch file changes.
https://camel.apache.org/components/4.0.x/file-watch-component.html

If you want to optimize the read operation to read specific file
content, you have to look at ways to control content read for special
marks and content.
camel-file component has some configuration to allow you to plug your
implementation, look for processStrategy,
https://camel.apache.org/components/4.0.x/file-component.html

-- 
  Claudio Miranda

clau...@claudius.com.br
http://www.claudius.com.br

Reply via email to