Classes to bridge-enable a queue manager

To use the MQ bridge you must have these two arrangements:
  1. MQ Classes for Java™ version 5.1 or later, installed on your MQe system, and available on the classpath for JVMs to use. MQ Classes for Java is available for free download from the Web as SupportPac™ MA88. This can be downloaded free, see MQe SupportPacs. The MQ classes for Java are also shipped with MQ software, but might not be installed depending on the options selected when MQ was installed. An example script below demonstrates what might be needed to set the correct environment on a Windows® system. This example was taken from the Java\Demo\Windows folder. A similar bsh UNIX® example can be found in Java\Demo\Unix directory.
    @Rem  Set up the name of the MQ Series directory.
    @Rem  This should be modified to suit your installation.
    set MQDIR=C:\Program Files\IBM\MQSeries
    
    @Rem   If you wish to use the MQ bridge then the CLASSPATH also
    @Rem   needs to know how to get to the MQSeries Java Client.
    if Exist "%MQDIR%\java\lib"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib;
    if Exist "%MQDIR%\java\lib\com.ibm.mq.jar"∧
       set CLASSPATH=%CLASSPATH%;  %MQDIR%\java\lib\com.ibm.mq.jar
    if Exist "%MQDIR%\java\lib\com.ibm.mqbind.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\com.ibm.mqbind.jar
    if Exist "%MQDIR%\java\lib\com.ibm.mq.iiop.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\com.ibm.mq.iiop.jar
    if Exist "%MQDIR%\java\lib\jta.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\jta.jar
    if Exist "%MQDIR%\java\lib\jndi.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\jndi.jar
    if Exist "%MQDIR%\java\lib\jms.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\jms.jar
    if Exist "%MQDIR%\java\lib\com.ibm.mqjms.jar"∧    
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\com.ibm.mqjms.jar
    if Exist "%MQDIR%\java\lib\connector.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\connector.jar
    if Exist "%MQDIR%\java\lib\fscontext.jar"∧ 
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\fscontext.jar
    if Exist "%MQDIR%\java\lib\ldap.jar"∧
       set CLASSPATH=%CLASSPATH%;%MQDIR%\java\lib\ldap.jar
    
    @Rem    The MQSeries Bridge also requires access to the MQSeries 
    @Rem    Executables so that native DLLs can be found.
    if Exist "%MQDIR%\java\lib" set PATH=%PATH%;%MQDIR%\java\lib
    if Exist "%MQDIR%\bin"      set PATH=%PATH%;%MQDIR%\bin;
  2. MQe classes, of which an example of superset classes can be found in the Java/Jars/MQeGateway.jar file. Deploying this file and adding it to your classpath will provide the queue manager with all the required classes necessary to use bridge function. For example,
    set CLASSPATH=%CLASSPATH%;%MQeDIR%\Java\Jars\MQeGateway.jar

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.