Re: Pause the processing of file

2020-06-12 Thread Mark Nuttall
What that means it will read and send the file line by line to the "to" - upon successful sending to the "to" it will read and send the next line. It fails because the direct no longer exists. On Fri, Jun 12, 2020 at 9:48 AM arshad dar wrote: > Thank you for your response > I was going through t

Re: Pause the processing of file

2020-06-12 Thread arshad dar
Thank you for your response I was going through the documentation it says "When in streaming mode, then the splitter splits the original message on-demand, and each splitted message is processed one by one" So doesn’t that mean if we don’t have demand it won’t produce new exchanges if the route

Re: Pause the processing of file

2020-06-12 Thread Mark Nuttall
The reason the first does not work is because direct routes are just like one method in a class calling another. And stopping the second is like removing the method. What I do when processing the file is read whole file and write to a topic/queue and then have the second route read from the queue.

Pause the processing of file

2020-06-12 Thread arshad dar
I have two routes below, the first route processing a very large CSV file and the second one converts each record to JSON and forwards the message to http-route from(fileUri).routeId(mainRouteId).to(dataFormatURI).split(body()) .streaming() .to("direct:sample") from"direct:sample" .m