我们构建了一个具有1个mule节点和2个WMQ Manager的Mule应用程序。我们正在使用HA代理将流量路由到多个队列管理器。(在属性文件中,我们指定queuemanager = *)
尽管我们从Mule创建了多个连接,但是所有连接都将到达同一队列管理器。(可以说,我保持numberofConsumer = 16)所有16个连接都将到达同一队列管理器。
有人遇到过这个问题吗?任何变通。复合组件解决了这个问题,但是复合元素不在m子4中。
我正在使用IBM jar。 com.ibm.mq.allclient-8.0.0.3.jar。我正在使用以下连接工厂和MQ连接器工厂
<wmq:connector name="drs-Request" port="${drs.mq.port}" transportType="CLIENT_MQ_TCPIP" specification="1.1" targetClient="JMS_COMPLIANT" validateConnections="true" maxRedelivery="-1" numberOfConsumers="${drs.mq.no.of.consumers}" connectionFactory-ref="drsConnectionFactory" doc:name="WMQ">
<reconnect-forever blocking="false" frequency="${drs.mq.reconnection.frequency}"/>
</wmq:connector>
<spring:beans>
<spring:bean id="drsConnectionFactory" name="drsConnectionFactory" class="com.ibm.mq.jms.MQConnectionFactory">
<spring:property name="channel" value="${drs.mq.channel}"/>
<spring:property name="hostName" value="${drs.mq.hostname}"/>
<spring:property name="port" value="${drs.mq.port}"/>
<spring:property name="queueManager" value="${drs.mq.queuemanager}"/>
<spring:property name="transportType" value="1"/>
<spring:property name="sSLCipherSuite" value="${drs.mq.ciphersuite}"/>
</spring:bean>
谢谢