Re: [ConsumerTemplate] CamelLocks deleted before file is completely processed

2013-10-01 Thread Aida
Hi, I have been investigating about this issue, because using the same ConsumerTemplate doesn´t seem to fix it. Just in case it can help somebody, I have seen that the MarkerFileExclusiveReadLockStrategy#deleteLockFiles method is called once per endpoint. So if two endpoints differ only in the "f

Re: [ConsumerTemplate] CamelLocks deleted before file is completely processed

2013-09-23 Thread Aida
Hi Claus, Once I have read and understood the link you indicated, I have two doubts: 1. If the idea is to create one consumerTemplate at the begginig and reuse it, and stop it after use ... What happens if two processes (different processes) use the template at the same time? I mean, if

Re: [ConsumerTemplate] CamelLocks deleted before file is completely processed

2013-09-21 Thread Claus Ibsen
Hi Yes create the template once and reuse it. See this page it also applies to consumer template http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html On Fri, Sep 20, 2013 at 1:55 PM, Aida wrote: > Hi, > > I'm using the consumer template for reading files, and I'