Obtaining the WebSphere MQ Resource Adapter for the WebSphere Application Server Liberty Profile

Technote (FAQ)


Question

How do I obtain the WebSphere MQ Resource Adapter for the WebSphere Application Server Liberty Profile?

Cause

In order to connect to WebSphere MQ from the Liberty Profile, the WebSphere MQ Resource Adapter must be used. The Liberty Profile does not contain the WebSphere MQ Resource Adapter. It must be obtained separately.

Answer

The WebSphere MQ Resource Adapter supports JCA v1.5. To provide full integration with WebSphere Application Server Liberty Profile the WebSphere MQ 7.5 Resource Adapter has been updated to APAR IC92914. This resource adapter retains full compatibility with other JavaEE 1.5 and above application servers.

See "WebSphere MQ resource adapter v7.1 and later statement of support"

Download
The WebSphere MQ Resource Adapter can be downloaded from Fix Central. To locate the latest version that is available for download, enter the phrase "Resource Adapter" in the Text Search box. The name of the file to be downloaded will be in the format of <V.R.M.F>-WS-MQ-Java-InstallRA.jar.

Installation

The jar file that can be downloaded from Fix Central is executable. When run, it will display the WebSphere MQ license agreement, which must be accepted. It will ask for a directory in which to install the WebSphere MQ Resource Adapter. The Resource Adapter file and Installation Verification test program will be installed to that directory. The directory will be created if it does not exist.

The directory could be the resource adapters directory of an application server or any other directory on your system.

To start the installation issue the command:
java -jar <V.R.M.F>-WS-MQ-Java-InstallRA.jar

from the directory to which you downloaded the file, where:<V.R.M.F>-WS-MQ-Java-InstallRA.jar
is the name of the file that was downloaded from Fix Central.This requires a Java™ Runtime Environment to have been installed on your machine and added to the system path.

For example, in order to install the WebSphere MQ Resource Adapter for the V7.5.0.3 release, the folllowing command would be used:

java -jar 7.5.0.3-WS-MQ-Java-InstallRA.jar

This would display the following:


LICENSE INFORMATION

The Programs listed below are licensed under the following terms and conditions in addition to those of the IBM International License Agreement for Evaluation of Programs (IBM form number Z125-5543-05).

Program Name: IBM WebSphere MQ V7.5 - 06/2013
Before you can use, extract, or install IBM WebSphere MQ V7.5 -
06/2013, you must accept the terms of 1. IBM International License
Agreement for Evaluation of Programs 2. IBM International Program
License Agreement and additional license information. Please read the
following license agreements carefully.


The license agreement is separately viewable using the
--viewLicenseAgreement option.

Press Enter to display the license terms now, or 'x' to skip.

Either press 'Enter' or 'x' as required, after display of the license or immediately on selection of 'x', additional license terms can be displayed.


Additional license information is separately viewable using the
--viewLicenseInfo option.

Press Enter to display additional license information now, or 'x' to skip.

Again press 'Enter' or 'x' as required.

The license now need to be accepted, this message is displayed:
By choosing the "I Agree" option below, you agree to the terms of the
license agreement and non-IBM terms, if applicable. If you do not
agree, select "I do not Agree".


Select [1] I Agree, or [2] I do not Agree:

Selecting '2' terminates installation immediately. Selecting '1' allows selection of the installation directory.


Enter directory for product files or leave blank to accept the default value.
The default target directory is H:\Liberty\WMQ

Target directory for product files?

Enter the directory to install the files to, or press 'Enter' without entering any value to install the default location as displayed. After the files have been installed to the requested location a confirmation message is displayed:
Extracting files to H:\Liberty\WMQ\wmq
Successfully extracted all product files.

Files Installed

Within the selected directory a new directory 'wmq' will be created. Inside the 'wmq' directory, the following files are installed.
jboss-jmsra-ds.xml
WAS_CE_jmsra_deployment_plan.xml
WAS_CE_jmsra_ivt_deployment_plan.xml
wmq.jmsra.ivt.ear
wmq.jmsra.rar

The xml files are deployment and resource descriptions for various application servers as denoted by the prefix. The wmq.jmsra.ivt.ear is the installation verification test program. The wmq.jmsra.rar is the WebSphere MQ Resource Adapter RAR file.

Details of running the installation verification test are within the WebSphere MQ 7.5 Product Documentation

Liberty Configuration

Details of the Liberty configuration should be checked in the WebSphere Application Server Product Documentation. In summary, an additional feature should be added (wmqJmsClient-1.1), and reference the wmq.jmsra.rar file added. An example configuration to support servlets and MDBs, with JNDI might look like

<featureManager>
          <feature>wmqJmsClient-1.1</feature>

<feature>servlet-3.0</feature>
<feature>jmsMdb-3.1</feature>
<feature>jndi-1.0</feature>

</featureManager>

   <variable name="wmqJmsClient.rar.location"        

              value="H:\Liberty\WMQ\wmq\wmq.jmsra.rar"/>

If an EJB is deployed using solely the configuration within the ejb-jar.xml, the version of WebSphere Application Server that the Liberty Profile is using must have APAR PM89890 applied. This method of configuration is used for the Resource Adapter's installation verification program (IVT), so this APAR is required in order for the IVT to run.

Platform Support

In addition to the platform support defined by the WebSphere MQ System Requirements, the WebSphere Application Server Liberty profile includes platform support for Mac OS X. Therefore use of the resource adapter within the Liberty profile on Mac OS X will be tolerated. Outside of the Liberty Profile the platform support for the WebSphere MQ Resource Adapter is unchanged

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere MQ
Java

Software version:

7.5, 7.5.0.1, 7.5.0.2, 7.5.0.3

Operating system(s):

AIX, HP-UX, IBM i, Linux, OpenVMS, Solaris, Windows, z/OS

Software edition:

All Editions

Reference #:

1633761

Modified date:

2014-09-16

Translate my page

Machine Translation

Content navigation