Re: Using Stream Cache With Apache Camel

2015-12-10 Thread kikou1984
Hi Claus, Well, the main purpose is to read a file block by block (for exemple, each 10 Mo) , for that i thought to use the splitter for split sub message, then for other business process, i need to reload the file from the begining (not really from the beginning but some date that has already be

Re: Using Stream Cache With Apache Camel

2015-12-09 Thread Claus Ibsen
The splitter will split the file and each of those splitted sub messages do not have the entire content, but only that chunk of the message. If you want to read the entire file again, then dont use the splitter, but just do a from file -> to process, and you can access the file using java.io.File /

Re: Using Stream Cache With Apache Camel

2015-12-09 Thread kikou1984
When i m trying to get the cache it returns null StreamCache cache = exchange.getIn().getBody(StreamCache.class); Do you have an idea how i can retrieve the StreamCache ? Thxs -- View this message in context: http://camel.465427.n5.nabble.com/Using-Stream-Cache-With-Apache-Camel-tp5774856p5