To configure the messaging system to work with JMS (Java Messaging Service), do the following:
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.
Start the iSeries QShell by typing: STRQSH at a CL prompt.
From the WebSphere Commerce machine update your classpath variable:
- Type the following command, all on one line:
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
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.
- Add a new environment variable named MQ_JAVA_INSTALL_PATH by
typing the following command:
where:export MQ_JAVA_INSTALL_PATH=MQ_install_path/java
set MQ_JAVA_INSTALL_PATH=MQ_install_path\java
- 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:
export PATH=WAS_install_path/java/jre/sh:$PATH
export PATH=WAS_install_path/java/jre/bin:$PATH
set PATH=WAS_install_path\Java\bin;%PATH%
- Type the following command, all on one line:
- Configure JMS using JMSAdmin.