I’m new to camel. I have an implementation that stores data on message body. In one of my use cases, I need to split my message based on a specific header but keep body unchangeable. So here is example of my implementation:
from("direct:start")
.split(simple("header.headerName"))
.to("direct:stop")
but in above code split EIP will split my message and store values on body so my previous data will be lost.
I tried to store my body as a header before splitting but new problems occurred. because my body is big text that contains specific characters.
Anyway my question is how can I store split results on header and keep body?