I'm reading about the Claim Check pattern in Spring Integration.
When using this pattern, it sounds as though the entire payload is placed in the message store and the resulting payload is only the claim check id.
Does Spring provide a simple way to store the payload in the message store while at the same time retaining specific parts of the payload? Would you need to use a header enricher first and store the properties you want access to in the header?
For example, say my payload is a simple XML document:
<payload>
<cc>1234432156788765</cc>
<or>5799</or>
</payload>
I want to claim check this payload but still retain access to the payload.or
element. How could this be done using current Spring Integration components?