Configuring JMS for WebSphere MQ

To configure the messaging system to work with JMS (Java Messaging Service), do the following:

  1. iSeries The iSeries QShell provides an emulator where Unix commands can be executed on your WebSphere Commerce machine. You must use Java 1.3 to perform the remaining commands. To set the user profile to use Java version 1.3, add the line java.version=1.3 into the users SystemDefault.properties file. For more information, consult the iSeries Java documentation. You must do this before starting QShell.
  2. iSeries Start the iSeries QShell by typing: STRQSH at a CL prompt.
  3. AIXLinuxSun Solaris Operating EnvironmentWindowsFrom the WebSphere Commerce machine update your classpath variable:
    1. Type the following command, all on one line:

      AIXLinuxSun Solaris Operating Environment

      export 
          CLASSPATH=$CLASSPATH:MQ_install_path/java/lib/com.ibm.mqjms.jar:
      
      MQ_install_path/java/lib/com.ibm.mq.jar:WAS_install_path/lib/ns.jar
      
      export 
      
          CLASSPATH=$CLASSPATH:WAS_install_path/lib/ujc.jar:
      
      WAS_install_path/lib/ejs.jar:
      
      WAS_install_path/lib/sslight.jar 
      

      Windows

      set 
          classpath=%classpath%;MQ_install_path\java\lib\com.ibm.mqjms.jar;
          MQ_install_path\java\lib\com.ibm.mq.jar;WAS_install_path\lib\ns.jar
      
      Note: This statement is too long to add as one statement at the command prompt. It must be added in two segments.

      where:

      WAS_install_path
      is the path in which you installed the WebSphere Application Server
      MQ_install_path
      is the path in which you installed WebSphere MQ.
    2. Add a new environment variable named MQ_JAVA_INSTALL_PATH by typing the following command:

      AIXSun Solaris Operating EnvironmentLinux export MQ_JAVA_INSTALL_PATH=MQ_install_path/java
      Windows set MQ_JAVA_INSTALL_PATH=MQ_install_path\java

      where:
      MQ_install_path
      is the path in which you installed WebSphere MQ.

      Update the environment to use the IBM Developer Kit, Java Technology Edition, that comes with WebSphere Application Server by typing the following command:

      AIX export PATH=WAS_install_path/java/jre/sh:$PATH 
      LinuxSun Solaris Operating Environment export PATH=WAS_install_path/java/jre/bin:$PATH
      Windows set PATH=WAS_install_path\Java\bin;%PATH% 

  4. Configure JMS using JMSAdmin.