什么是骡子的 'BlockingTransferInputStream' ?我的实际有效载荷在哪里?
What is mule's 'BlockingTransferInputStream' ? where is my actual payload?
我正在使用 Mule ESB 在面向服务的项目中进行基于内容的路由。我正在按照 here 的描述迁移到新的 'http based operation based connectors',但我找不到我的实际有效载荷在哪里(实际有效载荷是一个 SOAP XML)。当我打印有效载荷时,我得到这个:
org.mule.module.http.internal.listener.grizzly.BlockingTransferInputStream@6f05894a
我怎样才能得到我想要的负载? (肥皂XML)
这是我的侦听器配置:
<http:listener-config name="HTTP_request" host="${MachineName}" port="${InboundPort}" doc:name="HTTP request Configuration" />
<flow name="RestEtryPoint">
<http:listener config-ref="HTTP_request" path="/{name}" doc:name="HTTP" />
........ //SOME CODE//
</flow>
如此处所述http://forum.mulesoft.org/mulesoft/topics/logger,
您看到的是新的 http 连接器用来提高性能的流。要检查有效负载是什么,您需要使用对象到字符串转换器之类的东西来使用流。
另请注意,仅使用流来记录消息可能不是推荐的做法,因为它可能会影响应用程序的性能和内存占用。
我正在使用 Mule ESB 在面向服务的项目中进行基于内容的路由。我正在按照 here 的描述迁移到新的 'http based operation based connectors',但我找不到我的实际有效载荷在哪里(实际有效载荷是一个 SOAP XML)。当我打印有效载荷时,我得到这个:
org.mule.module.http.internal.listener.grizzly.BlockingTransferInputStream@6f05894a
我怎样才能得到我想要的负载? (肥皂XML)
这是我的侦听器配置:
<http:listener-config name="HTTP_request" host="${MachineName}" port="${InboundPort}" doc:name="HTTP request Configuration" />
<flow name="RestEtryPoint">
<http:listener config-ref="HTTP_request" path="/{name}" doc:name="HTTP" />
........ //SOME CODE//
</flow>
如此处所述http://forum.mulesoft.org/mulesoft/topics/logger, 您看到的是新的 http 连接器用来提高性能的流。要检查有效负载是什么,您需要使用对象到字符串转换器之类的东西来使用流。
另请注意,仅使用流来记录消息可能不是推荐的做法,因为它可能会影响应用程序的性能和内存占用。