> You are invited add, comment, criticize etc.
Hi Christian,
Looks good :) .
I've added some examples to Wiki demonstrating my vision of the usage
of Claim Check EIP.
// Setting default message store for route:
defaultMessageStore(myStore);
// Claim Check EIP store:
// 1) Store body.
// 2) Set body to null.
// 3) Set Exchange.CLAIM_CHECK header to unique claim id.
from(...).claimCheck().to(...);
// Claim Check EIP read:
// 1) Lookup for the Exchange.CLAIM_CHECK header value.
// 2) Read the message.
// 3) Set body to the value fetched from the store.
from(...).setHeader(Exchange.CLAIM_CHECK, const("id")).claim().to(...);
I'm curious if my claim check DSL design is similar to yours.
Best regards.
--
Henryk Konsek
http://henryk-konsek.blogspot.com