[英]How to configure to connect to IBM Websphere MQ Multi Instance Queue Manager from jboss eap standalone.xml
我已经创建了一个IBM Websphere MQ Muliti实例队列管理器,并且需要从jboss eap 6.4连接到该队列管理器以实现高可用性。
Instead of using the 'host' and 'port' attributes, you can use the 'connectionNameList' property on the Connection Factory. 可以使用连接工厂上的“ connectionNameList”属性来代替使用“主机”和“端口”属性。 The syntax is:
语法为:
connectionNameList
mqhost1(1414), mqhost2(1414)
Or, in the JBoss EAP server configuration file: 或者,在JBoss EAP服务器配置文件中:
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
<resource-adapters>
<resource-adapter id="wmq.jmsra.rar">
<archive>
wmq.jmsra.rar
</archive>
<transaction-support>XATransaction</transaction-support>
<config-property name="logWriterEnabled">
true
</config-property>
<config-property name="traceEnabled">
true
</config-property>
<config-property name="traceLevel">
6
</config-property>
<config-property name="maxConnections">
100
</config-property>
<connection-definitions>
<connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:jboss/jms/factory/aapd/MQQueueSharingConnectionFactory" enabled=
"true" pool-name="MQQueueSharingConnectionFactory">
<config-property name="connectionNameList">
10.10.189.74(1414), 10.10.189.75(1414)
</config-property>
You can also use the connectionNameList
in an MDBs activation specification. 您还可以在MDB激活规范中使用
connectionNameList
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.