Re: Cannot acquire read lock within x millis

2020-03-19 Thread Claus Ibsen
Hi Its better if when uploading the files they are uploaded using a temporary name and then renamed when done. eg if the network fails during upload then you know the file is not complete. If you dont do this, you can essentially have broken files. However if you know that a file is complete if i

RE: Cannot acquire read lock within x millis

2020-03-19 Thread Mark Harris
> Its been talked about before, that changed read-locks on FTP servers is not > "so fast" because FTP server > often returns file information / file lists with only hh:mm information and > not seconds, so a change > strategy cannot use seconds to know if a file was changed or not. Is there an al

Re: Camel 3.1: camelContext scoped errorHandler

2020-03-19 Thread Remco Schoen
Hi, Thanks, that worked: DeadLetterChannelBuilder deadLetterChannelBuilder = new DeadLetterChannelBuilder('mock:error') deadLetterChannelBuilder.setUseOriginalMessage(true) context.adapt(ExtendedCamelContext.class).errorHandlerFactory = deadLetterChannelBuilder > Op 19

Re: Camel 3.1: camelContext scoped errorHandler

2020-03-19 Thread Claus Ibsen
Hi adapt to extended camel context and there is a setter for error handler factory On Thu, Mar 19, 2020 at 12:25 PM Remco Schoen wrote: > > Hi, > > I was rewriting one of my tests to Camel 3.1 and it seems that I no longer > can set the error handler on a camelContext: > > @Before > voi

Camel 3.1: camelContext scoped errorHandler

2020-03-19 Thread Remco Schoen
Hi, I was rewriting one of my tests to Camel 3.1 and it seems that I no longer can set the error handler on a camelContext: @Before void init() { DeadLetterChannelBuilder deadLetterChannelBuilder = new DeadLetterChannelBuilder('mock:error') context.setErrorHandlerBuilder