Bhanu
Bhanu

Reputation: 25

How to configure to connect to IBM Websphere MQ Multi Instance Queue Manager from jboss eap standalone.xml

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

Answers (2)

Doug Grove
Doug Grove

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

Panagiotis Chavariotis
Panagiotis Chavariotis

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

Related Questions