2
votes

From a channel with a payload call to one int-http:outbound-gateway that call to an url to returns a JSON response

How get the initial payload from caller to get the initial payload, i´d need it to use in aggregator

This is the scene

message --> channel --> service activator --> outputchannel

outputchannel--->int-http:outbound-gateway(call rest service1) -->response to *

outputchannel--->int-http:outbound-gateway(call rest service2) -->response to *

  • aggregator
1

1 Answers

1
votes

You should place it to the MessageHeaders:

<header-enricher>
   <header name="requestPayload" expression="payload"/>
</header-enricher>

before those <int-http:outbound-gateway> invocation and extract it from headers in the aggregator logic.