Hello, We are facing an issue with File write in camel.
Our Camel route runs with 36 threads and it writes to 4 files in parallel depending on Message Type. These files are written in append mode and a file per minute which we defined using FileName with datetime. Issue is that some files in a day(during period when load is huge) gets corrupted. It gets jumbled data. Seems like one thread is writing and not taking a lock and other threads starts writing to same file. Is there any way that one thread writes to a file and takes lock so that other thread waits till this write is completed? Vanshul