camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From owain <>
Subject Re: Enrich headers of message
Date Thu, 03 Nov 2016 18:33:05 GMT
I think all you are wanting to do is save the file record (body) to your own
header called, say, filebody, then you can restore filebody header to the
exchange body at the end for the out.  In the meantime you can do the enrich
with the setBody to some data from header.filebody

In summary, your own headers are very useful to save intermediary values
during routes.  You should be aware that the propagate through to other
routes that take the exchange as an input (e.g. a wire tap) so you might
want to delete them before you send on the exchange.



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message