AnyPoint MQ在预取配置中出错

时间:2017-07-30 09:20:37

标签: mule mq anypoint-studio

我正在尝试在amypoint MQ中使用prefetch但是低于错误

org.xml.sax.SAXParseException:cvc-complex-type.2.4.a:找到以元素'anypoint-mq:provider'开头的无效内容。其中一个是{{http://www.mulesoft.org/schema/mule/anypoint-mq“:worker-threading-profile}'。

代码:

<anypoint-mq:config name="Anypoint_MQ_Configuration" doc:name="Anypoint MQ Configuration">
        <anypoint-mq:prefetch fetchSize="1"/>
        <anypoint-mq:provider url="https://mq-us-east-1.anypoint.mulesoft.com/api/v1" clientId="************" clientSecret="************"/>
    </anypoint-mq:config>
<flow name="testanypointmq1by1Flow2" processingStrategy="synchronous">
        <anypoint-mq:subscriber config-ref="Anypoint_MQ_Configuration" destination="test" doc:name="Anypoint MQ"/>
        <byte-array-to-string-transformer doc:name="Byte Array to String"/>
    <logger doc:name="Logger" level="INFO" message="Processing message received. #[payload]"/>
        <anypoint-mq:ack config-ref="Anypoint_MQ_Configuration" doc:name="Anypoint MQ"/>
    <logger doc:name="Logger" level="INFO" message="Message processed."/>
</flow> 

0 个答案:

没有答案