Reputation: 25
I have created a IBM Websphere MQ Muliti Instance queue manager and I need to connect to this Queue manager from jboss eap 6.4 to achieve High Availability
Upvotes: 0
Views: 1451
Reputation: 1045
Or, in the JBoss EAP server configuration file:
<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.
Upvotes: 1
Reputation: 976
Instead of using the 'host' and 'port' attributes, you can use the 'connectionNameList' property on the Connection Factory. The syntax is:
connectionNameList
mqhost1(1414), mqhost2(1414)
Upvotes: 1