Read message body line by line with Camel Groovy in stream mode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Read message body line by line with Camel Groovy in stream mode

Gerald Kallas - mailbox.org
Dear community,

we want to read with an embedded Groovy script the first line of a (large) file, but in streaming mode. Means that we don't want to process the whole file but only pick up the first line and stop.

Any hints are really appreciated. Thanks
- Gerald