Hi Team-

I have an issue while storing  logger information in to a log file. There are 
couple of routes which runs concurrently and writes the logger info in to a 
same file.

When two or more threads issues the same command to  store the content , it is 
throwing an exception below.


Logfile Directory : D:\GCASX\CAMEL\CamelLogs Logfile name: 
D:\GCASX\CAMEL\CamelLogs\GCASTransaction.log

Error String:  [ERROR] - [Camel (WellsCA) thread #33 - 
QueueReplyManager[GCAS.C140.PH4.REPLY]] - [2015-05-07 05:21:45,250 {dd MMM yyyy 
HH:mm:ss,SSS}] - [org.apache.camel.processor.DefaultErrorHandler] - [Failed 
delivery for (MessageId: 
null_destination__ID_414d5120474341535131202020202020550cf49820af2e11 on 
ExchangeId: ID-JSQPBWGCASA01-53456-1430405683480-0-121129). Exhausted after 
delivery attempt: 1 caught: 
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot 
store file: camelLogs\msg_EXP_2015-05-07_05.21_0140.log


Can you please advise if there is  any such  option allows only one thread to 
write down the data in to the log file same as readLock file option.

Thanks in advance.

Thanks,
Anusha

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

Reply via email to