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" .marshal().json(JsonLibrary.Jackson) .end() .to("direct:http-endpoint"); is there a way I can pause the processing of a file? I tried to suspend the second route but the first route keeps sending messages and I get ConsumerNotAvailableException if I try to suspend the first route, that does not help, it just stops polling of file component instead of pausing the current file that the route is processing. any help would be appreciated -- Arshid