THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
// Optionally: override default store from context // (ohr:) IMHO I don't think that this configuration level is really necessary defaultMessageStore(myStore); // 1) Store body. // 2) Set body to null. // 3) Set Exchange.CLAIM_CHECK header to unique claim id. from(...) .checkincheckIn() // store body in default store // .checkincheckIn(header('bigHeader'), customStore) : store header in custom store .to(...); |
Code Block | ||
---|---|---|
| ||
// 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")) : header should still contain the claim id .claimreclaim() // read body from default store // .reclaim().aggregationStrategy(myStrategy) : more generically using a aggregation strategy // .reclaim(customStore).aggregationStrategy(myStrategy) : reclaim from custom store using a aggregation strategy .to(...); |
...