我有一个transformer
输出为http:outbound-gateway
之一的输出,此outbound-gateway
的输出通道是我activator
的输出通道。我的要求是从Transformer
到activator
获取一些数据。
如下所示。
<int:transformer ref="jsonToXmlTransformer" input-channel="replyChannel" output-channel="someObj"/>
<http:outbound-gateway
request-channel="someObj"
expected-response-type="o.s.h.ResponseEntity"
reply-channel="replyChannel"
url="{someurl}"
http-method="POST"
extract-request-payload="true">
</http:outbound-gateway>
<int:service-activator id="expressionConverter" input-channel="replyChannel"
ref="lastActivator"/>
不要专注于此配置。我的意思是,我在家里,尽我所能回忆起我作为办公室的配置。没有错。只是我没有从我的transformer
到我的上一个activator
获得我的预期数据。这只不过是应用程序流的终点。
答案 0 :(得分:2)
考虑在标头中传输所需的数据。在出站网关之前将其添加到变压器之后的标题中,然后从激活器中获取它。