Hi,

I have a Jetty end-point which I consume (hope I'm getting the right
terminology, still I'm still learning this) - meaning it's acting as a
server accepting a POST request containing lines separated by a new-line.

I then have a streaming splitter based on new line, and then a parse-json
processor which parses the line as JSON. After that I'm sending it to a
direct end-point (which is another route).

I would like to send back stats as a response, including the number of
lines which failed parsing.

I couldn't find a way to to relay this stats from the parse-json processor
back to the original exchange which left the Jetty end-point.
Any idea?


Question 2:

I would like to extend the splitter to have a max line length, thus if
someone send 10 lines, but the 3rd is 2 mb long, then it will gracefully
skipped.
Does it exists some where other than the main camel repo?

If I would like to commit this feature back, what is the exact process I
should follow?

Thanks!

Asaf

Reply via email to