【问题标题】:Mule ActiveMQ JMS component with a receiver threading profile configuration not working具有接收器线程配置文件配置的 Mule ActiveMQ JMS 组件不起作用
【发布时间】:2013-12-31 09:40:00
【问题描述】:

有没有办法在 Mule ESB 中为 ActiveMQ 连接器组件设置接收器线程配置文件?似乎可以从 xsd 获得,但是当我运行该项目时,receiver-threading-profile 元素会抛出一个 SAXParseException: cvc-complex-type

这是我的 activemq 连接器配置

<jms:activemq-connector name="Active_MQ" specification="1.1" brokerURL="tcp://localhost:61616" validateConnections="true" disableTemporaryReplyToDestinations="true" doc:name="Active MQ">
    <reconnect frequency="5000"/>
    <receiver-threading-profile maxThreadsActive="10" poolExhaustedAction="WAIT"/>
</jms:activemq-connector>

有谁知道为什么这不起作用?或者如何设置最大线程数?

【问题讨论】:

    标签: activemq mule


    【解决方案1】:

    子元素顺序很重要,试试:

    <jms:activemq-connector name="Active_MQ" specification="1.1" brokerURL="tcp://localhost:61616" validateConnections="true" disableTemporaryReplyToDestinations="true" doc:name="Active MQ">
        <receiver-threading-profile maxThreadsActive="10" poolExhaustedAction="WAIT"/>
        <reconnect frequency="5000"/>
    </jms:activemq-connector>
    

    【讨论】:

    • 大声笑大卫,你是对的,是因为 activemq-connector 元素的 xsd 模式定义,对吧?
    猜你喜欢
    • 2015-12-13
    • 1970-01-01
    • 2021-05-16
    • 1970-01-01
    • 2015-06-16
    • 1970-01-01
    • 2015-02-24
    • 2012-06-17
    • 1970-01-01
    相关资源
    最近更新 更多