Claus Ibsen created CAMEL-25763:
-----------------------------------
Summary: camel-jbang-examples - route/enrich-and-dedupe:
idempotent consumer, pollEnrich into a variable, and a wire tap
Key: CAMEL-25763
URL: https://issues.apache.org/jira/browse/CAMEL-25763
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
Fix For: 4.24.0
The route rung of camel-jbang-examples shows the content-based router, the
splitter, the aggregator, the filter and the multicast. Three EIPs that users
need often are not shown anywhere: the idempotent consumer, the content
enricher (pollEnrich) and the wire tap.
A new example, route/enrich-and-dedupe, shows them with the web shop orders.
The shop sent ORD-1001 twice (resent-order-1001.json):
* an idempotent consumer with an in-memory repository accepts each order id
once and logs the resent one as a duplicate (skipDuplicate false),
* pollEnrich reads the customer's file into a variable (variableReceive), so
the order stays the body,
* a wire tap writes a copy of each accepted order to audit/ without holding the
order up.
It comes with a Citrus YAML test, and it is also a new task for the AI
benchmark.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)