Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Complete
-
2.2.3
-
N/A
Description
As per VMware Support Request 13319275205, I had requested a way to enricher headers in a similar way that you can use the <enricher> to enrich payloads. The solution in combination with a jdbc:outbound-gateway was outlined as follows:
<int:header-enricher input-channel="publishingChannel" output-channel="outputConsole"> <int:header name="status" expression="@statusFlow.exchange(#root).payload['STATUS']" /> </int:header-enricher> <int:gateway id="statusFlow" default-request-channel="getStatusForDeal" /> <int:chain input-channel="getStatusForDeal"> <int:transformer expression="payload.dealId" /> <jdbc:outbound-gateway query="select status from trade_details where dealId = :payload" data-source="dataSource" /> </int:chain>
This solution isn't immediately obvious so I was wondering whether this could be documented in some way (the Github Wiki has been requested) or ideally we can one day see a header enricher based on the payload enricher.
Attachments
Issue Links
- relates to
-
INT-3027 Add Header Enrichment to <enricher/>
-
- Closed
-