Message Transformation EIPs
These EIPs are extensions of the Message Translator EIP, and are dedicated to some special use cases.
The Content Enricher EIP
The Content Enricher EIP describes how to enrich the message with another system. For instance, the message contains an identifier, and you want to populate the data associated with this ID from a database.
To implement this EIP, you can use a bean or a processor as you do in the Message Translator EIP.
You can also use an endpoint that uses a transformation tool (such as Velocity
, Xslt
, and so on).
However, Camel provides two notations dedicated to content enrichment. They are as follows:
enrich
uses a producer endpoint to retrieve the data and use an aggregation strategy (like in the Aggregator EIP) to merge the data. For instance,enrich
is used to call a webservice or another direct endpoint.pollEnrich
, on the other hand, uses a consumer endpoint to poll the data and use an aggregation strategy to merge the data. For instance,pollEnrich...