Installing Third-Party JAR Files

Installing Third-Party JAR Files for the WebSphere MQ Adapter

This section includes information for installing and configuring the third-party JAR files for the WebSphere MQ Adapter.

ProcedureTo Install the JAR Files for WebSphere MQ

The following steps are for running the Third-Party Installer with default settings. If you are running the Installer for specific instantiations of NetBeans or GlassFish (separately), you must specify each specifically when running ant (for example, ant install-glassfish or ant install-netbeans).

  1. Install the Third-Party Library Installer and set up the environment, as described in Setting Up the Third-Party Library Installer.

  2. Navigate to the location of the Third-Party Library Installer.

  3. Customize the build.properties file with at least the following changes. For more information on build properties, see To Configure the Build File.

    1. Remove all values from the product.name property except webspheremq.

    2. Modify the webspheremq.thirdpartyfile property by adding the full path to com.ibm.mq.jar.

      For example:

      On Windows: webspheremq.thirdpartyfile=C:/Program Files/IBM/Websphere MQ/Java/lib/com.ibm.mq.jar

      On Solaris: webspheremq.thirdpartyfile= /opt/IBM/webspheremq/Java/lib/opt/com.ibm.mq.jar

  4. Shutdown the instances of Java CAPS NetBeans and GlassFish.

  5. Invoke the Third Party Installer by typing ant.

  6. Restart the Java CAPS NetBeans instance.

WebSphere MQ Adapter Required JAR Files

The WebSphere MQ Adapter requires the file com.ibm.mq.jar, a system specific JAR file, for normal operation. For XA transactions in Client mode, or for deploying EAR files to a WebLogic application server, the adapter also requires the com.ibm.mqetclient.jar file.

The com.ibm.mq.jar must be copied from the MQ server that you are running against. Depending on the mode of operation, the WebSphere MQ Library utilized by the adapter requires operating system-specific modules. If a WebSphere MQ Adapter project is deployed to a different MQ server running on a different operating system, the com.ibm.mq.jar file on the logical host must be replaced with the com.ibm.mq.jar from that specific MQ server to ensure that the JAR file remains operating system-specific with the current MQ server.

ProcedureTo install the system-specific com.ibm.mq.jar file

  1. Copy the com.ibm.mq.jar file from the WebSphere MQ server.

  2. Paste the JAR file to the \JavaCAPS\logicalhost\is\lib directory, where JavaCAPS is the Sun Java Composite Application Platform Suite installation directory.

Adding the required JAR files to the Integration Server Classpath for XA Transactions

The WebSphere MQ Adapter requires the com.ibm.mqetclient.jar file for XA transactions in Client mode and for deploying EAR files to a WebLogic application server. The JAR file is installed as part of the WebSphere MQ Extended Transaction client installation. Both the com.ibm.mq.jar and the com.ibm.mqetclient.jar must be added to the Integration Server classpath to run XA transactions in Client mode.

ProcedureTo add the required JAR files to the IS Classpath

  1. Note the location of the com.ibm.mq.jar and the com.ibm.mqclient.jar files on your logical host.

  2. Open the Integration Server Administration tool. Add the absolute path for both JAR files to the IS Administration tool's Classpath Prefix field.

  3. Save your work.