【发布时间】:2019-10-30 00:17:23
【问题描述】:
我是 Mule 的新手,我正在做一个公司项目。我在单个流中用 XML 定义了许多入站端点。我正在尝试让处理响应的处理器“scbProcessor”在入站端点中异步工作。
我试图将处理器包装在<async></async> 中,但它给出了错误:“发现以元素'async'开头的无效内容”。然后我尝试使它成为子流然后引用流,这给出了同样的错误。
代码:
<flow name="scb-services">
<composite-source doc:name="Composite Source inbounds">
<https:inbound-endpoint exchange-pattern="request-response" host="${httpInbound.secure.host}"
port="${httpInbound.secure.port}" doc:name="HTTPS QWE Service (Deprecated)"
path="${httpInbound.qwe.contextRoot}/${auto.external.serviceName}"
responseTimeout="${service.qwe.auto.timeout}" connector-ref="httpsConnector">
<mule-ss:http-security-filter realm="mule-realm"/>
<mule-ss:authorization-filter requiredAuthorities="PUBLIC"/>
<response>
<set-variable variableName="outgoingFromESBToClientDate"
value="#[new org.mule.el.datetime.DateTime()]"
doc:name="Register Outgoing date from ESB to Client"/>
<processor ref="scbProcessor" doc:name="SCB Logging Processor"/>
</response>
</https:inbound-endpoint>
.
.
</composite-source>
</flow>
.
.
【问题讨论】:
标签: asynchronous mule