IBM Support

Using custom property connectionNameList to connect to WebSphere MQ multi-instance queue managers from WebSphere Application Server

White Papers


Abstract

The objective of this technical document is to describe in detail how to exploit from the WebSphere Application Server the connection to Multi-Instance Queue Managers in WebSphere MQ 7.0.1 using a custom property called "connectionNameList" for Activation Specifications or "XMSC_WMQ_CONNECTION_NAME_LIST" for Connection Factories.

The MQ 7.0.1 JMS client introduced also the feature "automatic client reconnection", which is used on JMS stand-alone applications, but it is not used when running a JMS application within an application server. Instead, the automatic retry mechanisms for Listener Ports and Activation Specifications are used.

One way to configure the WebSphere Application Server to work with multi-instance queue managers is by using a custom property called "connectionNameList", in which the host names and ports of the different instances are specified. This is the easiest way.

Note: XA is not supported during automatic client reconnect

Content

The chapters of this document are:

Chapter 1: Prerequisites (MQ 7.0.1.3, Sample MDB, userid with proper authority)
Chapter 2: Creating JNDI objects and adding custom property
Chapter 3: Switchover testing of the Sample MDB - Listener Port

  • Test 1: Messages are passed to the MDB, from host-1 "veracruz"
  • Test 2: Doing a switchover of the Queue Manager from host-1 "veracruz" to host-2 "cbeech"
  • Test 3: MDB gets message that is put into the other instance of the queue manager (host-2 "cbeech")

Chapter 4: Switchover testing of the Sample MDB - Activation Specification
Similar steps as in Chapter 3
Chapter 5: Troubleshooting

Notes:
1) There is a new section labeled: +++ Update on 07-Jul-2014
This new section describes the additional fields for adding the connection name list when creating a Connection Factory or an Activation Specification when using WebSphere Application Server Administrative Console 8.x.

2) There is a new section labeled: +++ Update on 24-May-2011
This new section provides more details on the "XMSC_WMQ_CONNECTION_NAME_LIST" property for Connection Factories.

It is highly recommended that you review the details described in the following technote:

Technote: 1508357
Using WebSphere MQ automatic client reconnection with the WebSphere MQ classes for JMS

Attached PDF File: How_to_use_MQ_701_Multi-Instance_QMgrs_from_WAS-connectionNameList.pdf

How_to_use_MQ_701_Multi-Instance_QMgrs_from_WAS-connectionNameList.pdf
How_to_use_MQ_701_Multi-Instance_QMgrs_from_WAS-connectionNameList.pdfHow_to_use_MQ_701_Multi-Instance_QMgrs_from_WAS-connectionNameList.pdf

[{"Product":{"code":"SSFKSJ","label":"WebSphere MQ"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Configuration","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.0;7.5;7.1;7.0.1.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java Message Service (JMS)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5;8.0;7.0.0.13","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

WMQ MQ MQSeries

Document Information

Modified date:
17 June 2018

UID

swg27020700