mule 3,如何将响应从出站端点发送到另一个端点

mule 3,如何将响应从出站端点发送到另一个端点,mule,Mule,是否有一种方法可以将JSON响应作为请求异步发送到另一台服务器(例如监视等…) 这是我的骡子流 <flow name="loggingFlow1" doc:name="loggingFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="${source.http.host}" port="${source.http.port}" doc:name="HTTP" responseTimeo

是否有一种方法可以将JSON响应作为请求异步发送到另一台服务器(例如监视等…) 这是我的骡子流

<flow name="loggingFlow1" doc:name="loggingFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="${source.http.host}" port="${source.http.port}" doc:name="HTTP" responseTimeout="10000" />
<http:outbound-endpoint exchange-pattern="request-response" method="GET" address="http://${dest.http.host}:${dest.http.port}#[header:INBOUND:http.request]" contentType="application/json" doc:name="HTTP_GET" responseTimeout="10000" />

<async processingStrategy="Asynchronous_Processing_Strategy" doc:name="Async">
<http:outbound-endpoint exchange-pattern="one-way" address="http://localhost:8080/Monitor/response" doc:name="HTTP"/>
</async>
</flow>

由于任何原因,第一个
http:outbound端点产生的
InputStream
似乎被多次读取


对象到字符串转换器
输入流
序列化为
字符串
,或用
对象到字节数组转换器
字节[]
序列化为
字符串是最好的选择,
回送组件
是一个不再经常使用的遗留组件。

“请帮助我”你所做的看起来是正确的,你遇到了什么问题?我遇到了这个异常:java.io.IOException:trusted read on closed stream。当我在异步子流之前添加echo组件,并在异步子流的第一个子流中添加object-to-string transformer时,它可以工作,但有时会出现以下异常:java.lang.IllegalArgumentException:key不能为空@DavidDossotit与前面的注释中提到的“echo-component”和“object-to-string transformer”一起工作。现在的问题是,我为什么要使用“echo组件”?还有别的办法吗@大卫杜梭