Writing file content from a custom header

2018-03-30 Thread Jonathan Cook
Hi, I wondered if it was possible when using a file producer when writing file content to take the file from a custom header rather than the message body? For example imagine in one processor I store the file for later e.g) message.setHeader("FILE_OBJECT", file); Then later is there a way w

Recommendation/Best Practice for shutting down Camel Spring Boot App

2018-04-04 Thread Jonathan Cook
Hello, I was wondering if there was a way to shutdown a camel application which uses Spring Boot in a graceful way? I've seen this page - http://camel.apache.org/graceful-shutdown.html but it doesn't really explain it. For example I have a shell script for starting the app which runs my stand

Doubts about readLock policy

2019-02-05 Thread Jonathan Cook
Hello, I have read some posts about the readLock policy for the file component but I still have some doubts which hopefully can be answered here. My route is like this: file:///p2sa/stage/realtime/swap/data?delay=60&delete=true&maxMessagesPerPoll=1&noop=true&readLock=changed I underst

Strategy for deleting/moving files

2019-05-17 Thread Jonathan Cook
Hello, I am using the file endpoint with delete=true. My routes pick up files from a directory and then pass through a number of steps, so are reasonably complex. I have a dead letter route where in the event of an error I want to move the original file to a kind of failed directory area. Bu

Re: Strategy for deleting/moving files

2019-05-18 Thread Jonathan Cook
both? Thanks On 17/05/2019 19:03, Jonathan Cook wrote: Hello, I am using the file endpoint with delete=true. My routes pick up files from a directory and then pass through a number of steps, so are reasonably complex. I have a dead letter route where in the event of an error I want to mov

Re: Strategy for deleting/moving files

2019-05-19 Thread Jonathan Cook
Hi Alex, Great, that did the trick. Why is it that onException works and errorHandler doesn't for the file moveFailed specifically? Just to understand.. Thanks again Jonathan On 18/05/2019 10:14, Jonathan Cook wrote: Thanks for the replies The moveFailed does do what I want but only