Quick Beginnings: Websphere MQ For Linux
Quick Beginnings: Websphere MQ For Linux
Quick Beginnings
Version 7.0
GC34-6924-00
Websphere MQ for Linux
Quick Beginnings
Version 7.0
GC34-6924-00
Note
Before using this information and the product it supports, be sure to read the general information under notices at the back
of this book.
If you are migrating from a previous version of WebSphere MQ for Linux, you
must uninstall your current version before installing WebSphere MQ Version 7.0.
If you are migrating from a previous level of this product, you cannot revert to
your previous level, so back up your system before you install WebSphere MQ
Version 7.0. This will enable you to back out the upgrade if necessary. If you back
out the upgrade, however, you cannot recover any work, such as changes to
messages and objects, for example, performed by WebSphere MQ Version 7.0.
See the following topics for information about how to migrate to WebSphere MQ
Version 7.0.
If you want to migrate to WebSphere MQ Version 7.0, and also need to upgrade
your operating system to one supported by WebSphere MQ Version 7.0, complete
this task. For a list of supported operating systems, see WebSphere MQ Quick
Beginnings for Linux.
1. Stop all WebSphere MQ applications on the machine and the applications
accessing remote machines.
2. End all WebSphere MQ activity:
a. Log in as a user in group mqm.
b. Use the dspmq command to display the state of all the queue managers
on the system.
c. Use the endmqm command to stop all running queue managers.
d. Stop any listeners associated with the queue managers, using the
command:
Check that there are no processes listed that are running command lines
beginning amq or runmq. Ignore any that start with amqi.
3. Log in as root.
4. Function supplied by the SupportPacs in the table below has been superseded
by function in WebSphere MQ Version 7.0. Remove these SupportPacs before
installing WebSphere MQ Version 7.0.
Table 1. SupportPacs superseded by WebSphere MQ Version 7.0
SupportPac™ Number Description
MA0Y WebSphere MQ Bridge for HTTP
If you want to migrate to WebSphere MQ Version 7.0 and are already using an
operating system supported by WebSphere MQ Version 7.0, you do not need to
upgrade your operating system. See “Checking the operating environment,
WebSphere MQ for Linux” on page 6 for a list of supported operating systems.
Follow these steps to migrate to WebSphere MQ Version 7.0 whilst keeping your
WebSphere MQ data:
1. Before installing maintenance you must stop all WebSphere MQ applications on
the machine and the applications accessing remote machines.
2. End all WebSphere MQ activity:
a. Log in as a user in group mqm.
b. Use the dspmq command to display the state of all the queue managers on
the system.
c. Use the endmqm command to stop all running queue managers.
d. Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName
e. To check that you have stopped all necessary WebSphere MQ activity, type:
Check that there are no processes listed that are running command lines
beginning amq or runmq. Ignore any that start with amqi.
3. Log in as root.
4. Uninstall any WebSphere MQ service updates, then uninstall WebSphere MQ.
5. Check your system has the required WebSphere MQ prerequisites and install
WebSphere MQ Version 7.0 as described in the following chapters.
6. Restart WebSphere MQ.
If you have already tried to upgrade WebSphere MQ using rpm -U or rpm -F, you
might have deleted your old WebSphere MQ package entries from the RPM
database without removing the product from your system. You might also have
partially installed WebSphere MQ Version 7.0.
Immediately after you migrate to Websphere MQ Version 7.0, you must start your
queue managers at least once to migrate your file system structure before you start
any Websphere MQ listeners. Otherwise, you will not be able to start Websphere
MQ listeners after migration.
This command refreshes existing system objects with default values (for example,
setting the MCAUSER attribute of a channel definition to blanks), and creates the
queue required by the WebSphere MQ Explorer.
It is possible to have both a server and a client installation on the same machine,
for instructions on how to do this see, Chapter 4, “Installing a client on the same
machine as a server,” on page 59.
For information on the components that can be included in the server and client
installations see, “WebSphere MQ Components” on page 21.
The installation process is divided into the following set of tasks, complete all of
these tasks in sequence:
Note: WebSphere MQ does not support host names that contain spaces. If you
install Websphere MQ on a computer with a host name that contains spaces, you
will be unable to create any queue managers.
Hardware
WebSphere MQ for Linux, Version 7.0 (x86 platform) runs on any computer that
supports the x86 machine architecture, capable of running the required level of a
compatible operating system.
WebSphere MQ for Linux, Version 7.0 (x86-64 platform) runs on any computer that
supports the x86-64 (AMD64, Intel® EM64T or compatible) machine architecture,
capable of running the required level of a compatible operating system.
WebSphere MQ for Linux, Version 7.0 (POWER platform) runs on any 64-bit
System i or System p IBM POWER processor-based systems only, capable of
running the required level of a compatible operating system.
WebSphere MQ for Linux, Version 7.0 (zSeries s390x platform) runs on any IBM
System z9 or IBM eServer (or equivalent) 64-bit processor that is explicitly
compatible and fully capable of running a specified operating system.
WebSphere MQ for Linux, Version 7.0 (x86 platform) has been tested with the
following distributions:
v Red Hat Enterprise Linux (RHEL) V4.0 or later update
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) V9
v SuSE Linux Enterprise Server (SLES) V10
v NLPOS9 FP1
v IRES V2
v Red Flag Data Centre V5.0
WebSphere MQ for Linux, Version 7.0 (x86-64 platform) has been tested with the
following distributions:
v Red Hat Enterprise Linux V4.0 or later update
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) 9
v SuSE Linux Enterprise Server (SLES) 10
WebSphere MQ for Linux, Version 7.0 (POWER platform) has been tested with the
following distributions:
WebSphere MQ for Linux, Version 7.0 (zSeries s390x platform) has been tested with
the following distributions:
v Red Hat Enterprise Linux V4.0
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) 9
v SuSE Linux Enterprise Server (SLES) V10
Connectivity Requirements
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86
platform) are:
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86
platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (x86 platform) operating system. You can use any
communications hardware supporting TCP/IP
LU6.2 If you want to use the SNA LU6.2 support on WebSphere MQ for Linux,
Version 7.0 (x86 platform) you need the IBM® Communications Server for
Linux Version 6.2. The Communications Server is available as a PRPQ
product from IBM. For more details, see:
http://www.ibm.com/software/network/commserver/about
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86-64
platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (x86-64 platform) operating system. You
can use any communications hardware supporting TCP/IP
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (zSeries
s390x platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (zSeries s390x platform) operating system. You
can use any communications hardware supporting TCP/IP
http://www.ibm.com/software/network/commserver/about
Storage requirements
You can use the df command to determine the amount of free space on your
system.
If you want to use the WebSphere MQ Explorer (available for use with WebSphere
MQ for Linux, Version 7.0 (x86 & x86-64 platform) only), your system will require
the following, as a minimum:
v 512 MB RAM
v 1 GHz processor
v 800 MB for Eclipse Platform code and data
v A suitable monitor for the operating system with a screen size of at least
1024x768
If you intend to run SSL channels then you must have the g++ version 3.2 runtime
libraries installed. The GNU g++ libraries are called libgcc_s.so and
libstdc++.so.5 and, on a Red Hat system with libgcc and libstdc++5 RPMs
installed, are found in the directory /usr/lib.
If you have a distribution that does not install libgcc_s.so and libstdc++.so.5
into /usr/lib, then you will have to do one of the following:
v Locate and install the packages from your distribution vendor that contain these
libraries.
v Install the GNU gcc and g++ compilers from another location, for example the
home page for the GNU compiler collection at http://gcc.gnu.org/
Ensure that the libraries listed above are included in /usr/lib after installation.
Note: On 64–bit platforms, the 32–bit and the 64–bit versions of the package
should both be installed. This is so that 32–bit and 64–bit processes can both use
SSL functions.
If you want to use the SSL support, you need IBM Global Security Kit V7. This is
supplied with WebSphere MQ as one of the components available for installation.
If you are migrating from WebSphere MQ Version 5.3 and have no other
requirement for the IBM Global Security Kit V6, you can uninstall it using the
process described in Chapter 6, “Uninstalling WebSphere MQ,” on page 65, the
package name is gskbas-6.0-n.nn.<arch>.rpm.
The following compilers are supported for WebSphere MQ for Linux, Version 7.0.
C applications/C++ applications
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL applications
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java™ applications
v IBM 32-bit SDK for Linux on Intel, Java 2 Technology Edition V1.4.2
v IBM 32-bit SDK for Linux on Intel architecture, Java 2 Technology Edition V5.0
v IBM 32-bit SDK for Linux on Intel architecture, Java 2 Technology Edition V6.0
v Java 2 Platform, Standard Edition (J2SE) V1.4.2 from Sun Microsystems, Inc.
Transaction Monitors
v IBM TXSeries V6.1
v IBM TXSeries V6.2
v IBM WebSphere Application Server (WAS) V5.1
v IBM WebSphere Application Server (WAS) V6.0.2
v IBM WebSphere Application Server (WAS) V6.1
v BEA Tuxedo V9.1
v BEA WebLogic Server V9.1
Databases
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5.0 (SR1 or later). An
appropriate runtime environment is provided in the JDK provided on the
WebSphere MQ Server CD-ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using Java with WebSphere MQ see WebSphere MQ
Using Java.
For further information about using SOAP with WebSphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK might not be FIPS level 140-2 compliant and by using it with
WebSphere MQ, WebSphere MQ Version 7.0 will not comply with the FIPS 140-2
standards.
v SOAP is not supported.
The following compilers are supported for WebSphere MQ for Linux, Version 7.0.
C applications/C++ applications
v GNU C Compiler (gcc) and g++, Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++, Version 4.1.1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++, Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL applications
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java applications
v 32-bit
– IBM® 32-bit SDK for Linux on Intel® architecture, Java™ 2 Technology Edition,
Version 1.4.2
– IBM 32-bit SDK for Linux on Intel architecture, Java 2 Technology Edition
V5.0 (SR1 or above)
– IBM 32-bit SDK for Linux on Intel architecture, Java 2 Technology Edition
V6.0
– Java 2 Platform, Standard Edition (J2SE) V1.4.2 from Sun Microsystems, Inc.
– Java 2 Platform, Standard Edition (J2SE) V1.5 from Sun Microsystems, Inc.
v 64-bit
Chapter 2. Installing a WebSphere MQ server 11
– IBM SDK for Linux on AMD64/EM64T architecture, Java 2 Technology
Edition, Version 1.4.2
– IBM SDK for Linux on AMD64/EM64T architecture, Java 2 Technology
Edition, Version 5
– IBM SDK for Linux on AMD64/EM64T architecture, Java 2 Technology
Edition, Version 6
– Java 2 Platform, Standard Edition (J2SE) V1.5 from Sun Microsystems, Inc.
Transaction Monitors
v IBM TXSeries V6.1
v IBM TXSeries V6.2
v IBM WebSphere Application Server (WAS) V5.1
v IBM WebSphere Application Server (WAS) V6.0.2
v IBM WebSphere Application Server (WAS) V6.1
v BEA Tuxedo V9.1
v BEA WebLogic Server V9.1
Databases
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5.0 (SR1 or later). An
appropriate runtime environment is provided in the JDK supplied on the
WebSphere MQ Server CD-ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using SOAP with WebSphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK may not be FIPS level 140-2 compliant and by using it with WebSphere
MQ, WebSphere MQ Version 7.0 will not comply the FIPS 140-2 standards.
v SOAP is not supported.
The following compilers are supported for WebSphere MQ for Linux applications
on the POWER platform:
C/C++
v GNU C Compiler (gcc) and g++ Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++ Version 4.1,1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++ Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java
v 32-bit
– IBM 32-bit SDK for Linux for System i and System p, Java 2 Technology
Edition V1.4.2 (supported on System p only)
– IBM 32-bit SDK for Linux for IBM System i and System p, Java 2 Technology
Edition V5.0 (SR1 or above)
– IBM 32-bit SDK for Linux for IBM System i and System p, Java 2 Technology
Edition V6.0
v 64-bit
– IBM 64-bit SDK for Linux for IBM System i and System p, Java 2 Technology
Edition V1.4.2 (supported on System p only)
– IBM 64-bit SDK for Linux for IBM System i and System p, Java 2 Technology
Edition V5.0 (SR1 or above)
– IBM 64-bit SDK for Linux for IBM System i and System p, Java 2 Technology
Edition V6.0
Transaction Monitors
v IBM TXSeries® V6.1
v IBM TXSeries® V6.2
v WebSphere Application Server, Version 5.1
v WebSphere Application Server, Version 6.0.2
v WebSphere Application Server, Version 6.1
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5.0 (SR1 or later). An
appropriate runtime environment is provided in the JDKs provided on the
WebSphere MQ Server CD- ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using Java with WebSphere MQ see WebSphere MQ
Using Java.
For further information about using SOAP with Websphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK might not be FIPS level 140-2 compliant and by using it with
WebSphere MQ, WebSphere MQ Version 7.0 will not comply with FIPS 140-2
standards.
v SOAP is not supported.
On the POWER platform, the 32-bit and 64-bit JDKs are typically installed to
different locations, for example, the 32-bit JDK is located in /opt/IBMJava2-ppc-50
and the 64-bit JDK is located in /opt/IBMJava2-ppc64-50. Ensure that the PATH
The following compilers are supported for WebSphere MQ for Linux applications
on the zSeries s390x platform.
C/C++
v GNU C Compiler (gcc) and g++ Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++ Version 4.1.1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++ Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java
v IBM 31-bit SDK for Linux on System z9, Java 2 Technology Edition, Version 1.4.2
v IBM 31-bit SDK for Linux on System z9, Java 2 Technology Edition V5.0 (SR1 or
above)
v IBM 31-bit SDK for Linux on System z9, Java 2 Technology Edition V6.0
v IBM 64-bit SDK for Linux on System z9, Java 2 Technology Edition, Version 1.4.2
v IBM 64-bit SDK for Linux on System z9, Java 2 Technology Edition V5.0 (SR1 or
above)
v IBM 64-bit SDK for Linux on System z9, Java 2 Technology Edition V6.0
Transaction Monitors
v IBM TXSeries V6.1
v IBM TXSeries V6.2
v IBM WebSphere Application Server (WAS) V5.1
v IBM WebSphere Application Server (WAS) V6.0.2
v IBM WebSphere Application Server (WAS) V6.1
v BEA Tuxedo V9.1
Databases
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5 (SR1 or later). An
appropriate runtime environment is provided in the JDK provided on the
WebSphere MQ Server CD- ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using SOAP with WebSphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK might not be FIPS level 140-2 compliant and by using it with
WebSphere MQ, WebSphere MQ Version 7.0 will not comply with the FIPS 140-2
standards.
v SOAP is not supported.
It is also suggested that you set the mqm user’s home directory to /var/mqm.
Users do not need mqm group authority to run applications that use the queue
manager; it is needed only for the administration commands.
The topics contained in this section describe how to prepare your file system for
installing WebSphere MQ. Perform these tasks before installation.
The WebSphere MQ product code is installed in /opt. If you cannot install the
product code in the /opt file system because the file system is too small to contain
the product, you can do one of the following:
1. Create a new file system and mount it as /opt/mqm. If you choose this option,
the new file system must be created and mounted before installing the product
code.
2. Create a new directory anywhere on your machine, and create a symbolic link
from /opt/mqm to this new directory. For example:
mkdir /bigdisk/mqm
ln -s /bigdisk/mqm /opt/mqm
If you choose this option, the new directory must be created, and the link
created, before installing the product code.
The file system into which the code is installed can be a remote network device,
for example, NFS. However, you must define the mount options defined on that
device to allow setuid programs, including those which are setuid root, to run.
To determine the size of the /var/mqm file system for a server installation, consider:
v The maximum number of messages in the system at one time
v Contingency for message buildups, if there is a system problem
v The average size of the message data, plus 500 bytes for the message header
v The number of queues
v The size of log files and error messages
You can also create separate file systems for your log data (/var/mqm/log) and
error files (/var/mqm/errors). If possible, store log files on a different physical disk
from the WebSphere MQ queues (/var/mqm).
If you are creating separate file systems, allow a minimum of 30 MB of storage for
/var/mqm for a server installation and 15 MB of storage for /var/mqm for a client
installation. Also allow 20 MB of storage for /var/mqm/log, and 4 MB of storage for
/var/mqm/errors for both client and sever installations.
If you want to use individual queues that will hold more than 2 GB of data, you
must enable /var/mqm to use large files.
The size of the log file depends on the log settings that you use. The minimum
sizes above are for circular logging using the default settings. For further
information on log sizes see the WebSphere MQ System Administration Guide.
When using the 64-bit queue manager, the use of the LIBPATH and
LD_LIBRARY_PATH environment variable is not advised. Setting these
environment variables might result in you not being able to run any WebSphere
MQ commands. By default, the installation will operate as in previous versions of
WebSphere MQ, with symbolic links being created from /usr/lib, /usr/bin and
/usr/include to the appropriate files within the WebSphere MQ tree structure. In
the case of /usr/lib the symbolic links will be to the 32-bit WebSphere MQ
libraries provided for customer 32-bit applications.
All WebSphere MQ commands are 64-bit and have a built in path to the
WebSphere MQ 64-bit libraries, however, this can be overridden by the use of
LIBPATH and thus can cause WebSphere MQ commands to fail to run. The
recommended way of using WebSphere MQ commands and your applications is as
follows:
v Unset LIBPATH and LD_LIBRARY_PATH and build your applications with a
built in path to the appropriate WebSphere MQ libraries, this is detailed in the
appropriate WebSphere MQ book for your type of WebSphere MQ application.
v If you need to set LIBPATH or LD_LIBRARY_PATH, consider not including
/usr/lib in the path you specify in the variable. If you need to include /usr/lib
in your LIBPATH or LD_LIBRARY_PATH then in order to avoid errors running
64-bit WebSphere MQ applications or WebSphere MQ commands, consider
removing the symbolic links from /usr/lib to the 32-bit WebSphere MQ libraries
using the dltmqlnk command. The symbolic links can be restored with the
crtmqlnk command. You also need to build your applications with a built in
path to the appropriate WebSphere MQ libraries.
Note that both the dltmqlnk command and the crtmqlnk command are scripts,
and take no parameters.
v If you cannot use either of the first two options, run your applications in a
different environment to the one which issues any WebSphere MQ commands.
Kernel configuration
WebSphere MQ makes use of System V IPC resources, in particular shared
memory and semaphores.
To view the kernel parameters for your system, enter the command ipcs -l
To add or alter these values, log on as a user with root authority. Open the file
/etc/sysctl.conf with a text editor, then add or change the following entries to the
values shown:
kernel.msgmni = 1024
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 500 256000 250 1024
fs.file-max = 32768
net.ipv4.tcp_keepalive_time = 300
If you do not issue the sysctl -p command, the new values are loaded when the
system is rebooted.
Maximum processes
A running WebSphere MQ queue manager consists of a number of thread
programs, and each connected application will increase the number of threads
running in the queue manager processes. You should ensure that the maximum
number of processes which the mqm user is allowed to run is not unduly restricted
by one of the pluggable security modules such as PAM. Set nproc for the mqm user
to 4090 or more.
This section describes the installation of the server, using the RPM Package
Manager installer, enabling you to choose which components you want to install.
You must install at least the Runtime, the Server, the JRE, and the Java
components. The components and filesets are listed in “WebSphere MQ
Components” on page 21.
1. Log in as root.
2. If you are installing from the Server CD-ROM, insert the WebSphere MQ for
Linux Server CD-ROM, and make the mount point your current directory.
3. Run the mqlicense.sh script. If you want to view a text-only version of the
license, which can be read by a screen-reader, type:
./mqlicense.sh -text_only
Note: Ensure that /bin/sh is a valid shell interpreter compatible with the Bourne
shell, otherwise the post-installation configuration of WebSphere MQ will not
complete successfully.
If your Linux machine was not installed with RPM, you might see a prerequisites
failure of /bin/sh when you try to install WebSphere MQ. This is because the RPM
tables do not recognize that a valid shell interpreter is installed.
If this occurs, you can reinstall the /bin/sh shell using RPM, or specify the RPM
option --nodeps to disable dependency checking during installation of WebSphere
MQ.
WebSphere MQ Components
This lists all of the installable MQ components and other IBM products that
comprise Websphere MQ.
When you install WebSphere MQ for Linux, you can choose which components to
install.
Table 4. WebSphere MQ components and packages
Component Description Package Server Client
(with
SSL)
Runtime Mandatory component. Needed for MQSeriesRuntime X X
application development and provides
support for external applications.
SDK Required for compiling applications. MQSeriesSDK X X
Client The WebSphere MQ client is a small subset MQSeriesClient X X
of WebSphere MQ, without a queue
manager. Provides remote access to
WebSphere MQ. Must be connected to a
server. To install a client on the same
machine as a server, use the Server
CD-ROM; otherwise use the Clients
CD-ROM.
Sample Sample application programs. Needed if MQSeriesSamples X X
programs you want to check your WebSphere MQ
installation using the verification
procedures.
Java messaging The files needed for messaging using Java MQSeriesJava X X
(includes Java Messaging Service).
Prerequisite for the server component.
SSL support Support for SSL key management MQSeriesKeyman X X
You must install the Samples programs component if you want to use these
verification procedures. For information on installing components, see: “WebSphere
MQ Components” on page 21. The following set of tasks describes how to verify
that the WebSphere MQ for Linux server has been correctly installed and
configured. You can verify a WebSphere MQ server installation at different levels:
v To verify a local (stand-alone) installation that has no communication links with
other WebSphere MQ installations, do the following:
– To verify the installation using a single queue manager with a single queue,
see: “Verifying a local installation.”
– To verify the installation using the Postcard application, see: “Using the
Postcard application to verify a local installation” on page 31.
v To verify a server-to-server installation that includes communication links to
other WebSphere MQ installations, do the following:
– To verify the installation using two queue managers, two queues and both a
sender channel and a receiver channel, see: “Verifying a server-to-server
installation” on page 26.
– To verify the installation using the Postcard application, see: “Verifying the
installation using the Postcard application” on page 31.
To verify a client/server installation that includes communication links between a
server and a WebSphere MQ client, see “Verifying the client installation” on page
54.
From a shell window, use these steps to create a queue manager and a queue:
1. Log in as a user in the mqm group
2. Create a default queue manager called venus.queue.manager by entering the
following command:
crtmqm -q venus.queue.manager
You will see messages telling you that the queue manager has been created,
and that the default WebSphere MQ objects have been created.
3. To start the queue manager, type:
strmqm
To test the queue manager and queue, use the amqsput sample program to put a
message on the queue, and the amqsget sample program to get the message back
from the queue:
1. Log on as a user in group mqm, if you are not already.
2. Change into the /opt/mqm/samp/bin directory, which contains the sample
programs.
3. Put a message on the queue using the following command:
./amqsput ORANGE.QUEUE
Your message is now on the queue and the command prompt is displayed
again.
5. To get the message from the queue, use the following command:
./amqsget ORANGE.QUEUE
The sample program starts, and your message is displayed. After a pause, the
sample ends and the command prompt is displayed again.
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86
platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (x86 platform) operating system. You can use any
communications hardware supporting TCP/IP
LU6.2 If you want to use the SNA LU6.2 support on WebSphere MQ for Linux,
Version 7.0 (x86 platform) you need the IBM Communications Server for
Linux Version 6.2. The Communications Server is available as a PRPQ
product from IBM. For more details, see:
http://www.ibm.com/software/network/commserver/about
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86-64
platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (x86-64 platform) operating system. You
can use any communications hardware supporting TCP/IP
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (zSeries
s390x platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (zSeries s390x platform) operating system. You
can use any communications hardware supporting TCP/IP
Protocol Comments
TCP/IP TCP/IP is part of the Linux (POWER platform) operating system. You can use
any communications hardware supporting TCP/IP
LU6.2 If you want to use the SNA LU6.2 support on WebSphere MQ for Linux,
Version 7.0 (POWER platform) you need the IBM Communications Server
for Linux Version 6.2. The Communications Server is available as a PRPQ
product from IBM. For more details, see:
http://www.ibm.com/software/network/commserver/about
The tasks in this section explain how to verify your installation and use TCP in the
examples; if you are using an alternative protocol, refer to the WebSphere MQ
Intercommunication manual.
Messages tell you that the queue manager has been created, and that the
default WebSphere MQ objects have been created.
3. To start the queue manager, type:
strmqm
A message tells you that an MQSC session has started. MQSC had no
command prompt.
5. Define a local queue called TRANSMIT1.QUEUE (to be used as a transmission
queue) by entering the following command:
define qlocal (transmit1.queue) usage (xmitq)
The name specified by the rname parameter must be the same as the name of
the queue to which you are sending the message (ORANGE.QUEUE on the receiver
workstation).
7. Define a sender channel with the following command:
define channel (first.channel) chltype (sdr)
conname (’con-name(port)’) xmitq (transmit1.queue) trptype (tcp)
The value con-name is the TCP address of the receiver workstation, and port is
the port number, port 1414 is the default port number.
8. End MQSC by typing:
end
Now to set up the receiver server so that you can verify your server-to-server
installation, see “Setting up the receiver server.”
Messages tell you that the queue manager has been created, and that the
default WebSphere MQ objects have been created.
3. To start the queue manager, type:
strmqm
A message tells you that an MQSC session has started. MQSC has no command
prompt.
5. Define a local queue called ORANGE.QUEUE by entering the following command:
define qlocal (orange.queue)
Note: If you do not specify the port that the listener should listen on, the
default of 1414 is used. If you specified a port other than 1414 in step 7 of
“Setting up the sender server” on page 28, you must include the port
parameter in the command, as shown below.
define listener (listener1) trptype (tcp) control (qmgr) port (port_number)
Where
port_number
is the name of the port the listener should run on. This must be the same
as the number used when defining your sender channel.
7. Start the listener by entering the following command:
start listener (listener1)
Note: It is not recommended to start the listener in the background from any
shell that automatically lowers the priority of background processes.
8. Define a receiver channel with the following command:
define channel (first.channel) chltype (rcvr) trptype (tcp)
Now to test communications between your sender and receiver workstations, see
“Testing communication between the servers.”
A message tells you that an MQSC session has started. MQSC has no
command prompt.
4. On the sender server, start the sender channel using the MQSC START
CHANNEL command and specify the channel name:
START CHANNEL(FIRST.CHANNEL)
The receiver channel on the receiver server starts automatically when the
sender channel starts.
5. End MQSC by typing:
end
Your message is now on the queue and the command prompt is displayed
again.
9. On the receiver server, change into the /opt/mqm/samp/bin directory, which
contains the sample programs.
10. To get the message from the queue at the receiver, enter the following
command:
./amqsget ORANGE.QUEUE
The sample program starts, and your message is displayed. After a pause, the
sample ends and the command prompt is displayed again.
To use the Postcard application to verify a local installation (which does not have
any communication links with other WebSphere MQ installations), see “Using the
Postcard application to verify a local installation.”
To use the Postcard application to verify communication between your server and
the server of another named user, where that server is running WebSphere MQ and
using TCP/IP, see “Using the Postcard application to verify a server-to-server
installation” on page 33.
To verify that the local installation is working, you can run two instances of the
Postcard application on the same server and send messages between the
applications. Successful sending and receiving of messages verifies that WebSphere
MQ is installed and working correctly on the server.
Note:
v The Postcard application has a graphical interface. To view this interface, your
system requires the ability to view a graphical display.
Chapter 2. Installing a WebSphere MQ server 31
v Before you can run the Postcard application, you must ensure that you are a
member of the WebSphere MQ administrators group (mqm).
If there are no queue managers on your server, you are invited to run the Default
Configuration wizard to create a queue manager to use with the Postcard
application after signing on to the Postcard application.
1. Start the Postcard application:
v In WebSphere MQ for Linux, Version 7.0 (any platform), you start the
Postcard application as follows:
a. Log on as a user in group mqm.
b. Change directory to /opt/mqm/java/bin
c. Run the Postcard shell script.
./postcard
v In WebSphere MQ for Linux, Version 7.0 (x86 platform), in addition to the
above method, you can start the Postcard application as follows:
a. Ensure the WebSphere MQ Explorer is installed, and launch it with the
following command:
strmqcfg
If this is the first time you have launched the Explorer, click on Get
Started to open the Get Started page, then click Launch the Postcard
Application to launch the Postcard.
b. If this is not the first time you have launched the Explorer, you might
have to navigate to the Welcome pages. Click Help → Welcome to
display the Welcome page.
c. Click on Get Started to open the Get Started page, then click Launch
the Postcard Application to launch the Postcard.
2. At the Postcard - Sign On window, type in a nickname to use to send
messages within the Postcard application (for example, User1).
3. Select the queue manager to use as the mailbox:
v If the only queue manager on your server is the default queue manager that
you created by running the Default Configuration wizard, this queue
manager is used automatically as your mailbox for postcards.
v If you have created one or more of your own queue managers, but you
have not run the Default Configuration wizard, select the appropriate queue
manager from the list displayed.
v If you do not have any queue managers, you will be prompted to either
launch the Default Configuration or close the Postcard application.
Launching the Default Configuration will create a default queue manager.
v If you have run the Default Configuration wizard and you want to use the
default queue manager, but there is more than one queue manager on your
server, select the Advanced checkbox, then select Use Default
Configuration as mailbox.
v If you have run the Default Configuration wizard and also created one or
more of your own queue managers, and you do not want to use the default
queue manager, select the Advanced checkbox, select Choose queue
manager as mailbox, then select the appropriate queue manager from the
list displayed.
When your selection is complete, click OK to display your first Postcard
window.
To use the Postcard application for this type of verification, one of the following
must be true:
v Both queue managers must be in the same cluster; this is the simplest method.
To ensure that both queue managers are in the same cluster, you can run the
Postcard application before creating any local queue managers on each server.
The Postcard application detects that there are no local queue managers defined
for that server, and displays the Default Configuration wizard so that you can
create the default queue managers and link them to the default cluster.
You can use the Postcard application with existing queue managers, as long as
both queue managers belong to the same cluster. If you have already completed
the Default Configuration wizard but did not put the two queue managers into
the same cluster, you can create your own new queue managers on both servers,
create a cluster, and ensure that the queue managers that you create on each
server belong to the same cluster.
v Alternatively if the queue managers are not in the same cluster, you can
configure channels to communicate between the two servers. For instructions on
how to set up the channels, see “Setting up the sender server” on page 28 and
Note:
v The Postcard application has a graphical interface. To view this interface, your
systems require the ability to view a graphical display.
v Before you can run the Postcard application on each server, you must ensure
that you are a member of the WebSphere MQ administrators group (mqm) on
each server.
If this is the first time you have launched the Explorer, click on Get
Started to open the Get Started page, then click Launch the Postcard
Application to launch the Postcard.
b. If this is not the first time you have launched the Explorer, you might
have to navigate to the Welcome pages. Click Help → Welcome to display
the Welcome page.
c. Click on Get Started to open the Get Started page, then click Launch the
Postcard Application to launch the Postcard.
2. At the Postcard - Sign On window, type in a nickname to use to send messages
within the Postcard application (for example, User1).
3. Select the queue manager to use as the mailbox (You can use the Postcard
application with existing queue managers, as long as both queue managers
belong to the same cluster. If your existing queue manager does not belong to
the appropriate cluster refer to the introduction of this topic for information on
how to proceed):
v If the only queue manager on your server is the default queue manager that
you created by running the Default Configuration wizard, this queue
manager is used automatically as your mailbox for postcards.
v If you have created one or more of your own queue managers, but you have
not run the Default Configuration wizard, select the appropriate queue
manager from the list displayed.
v If you do not have any queue managers, you will be prompted to either
launch the Default Configuration or close the Postcard application.
Launching the Default Configuration will create a default queue manager.
If this is the first time you have launched the Explorer, click on Get
Started to open the Get Started page, then click Launch the Postcard
Application to launch the Postcard.
b. If this is not the first time you have launched the Explorer, you might
have to navigate to the Welcome pages. Click Help → Welcome to display
the Welcome page.
c. Click on Get Started to open the Get Started page, then click Launch the
Postcard Application to launch the Postcard.
2. At the Postcard - Sign On window, type in a nickname to use to send messages
within the Postcard application (for example, User 2).
3. Select the queue manager to use as the mailbox (You can use the Postcard
application with existing queue managers, as long as both queue managers
belong to the same cluster. If your existing queue manager does not belong to
the appropriate cluster refer to the introduction of this topic for information on
how to proceed):
v If the only queue manager on your server is the default queue manager that
you created by running the Default Configuration wizard, this queue
manager is used automatically as your mailbox for postcards.
v If you have created one or more of your own queue managers, but you have
not run the Default Configuration wizard, select the appropriate queue
manager from the list displayed.
When all installation and verification is complete, you are ready to start using
WebSphere MQ (see the WebSphere MQ System Administration Guide).
It is possible to have both a server and a client installation on the same machine,
for instructions on how to do this, see Chapter 4, “Installing a client on the same
machine as a server,” on page 59.
For information about the components that can be included in the server and client
installations, see “WebSphere MQ Components” on page 51.
The group of topics within this section take you through the process of installing a
WebSphere MQ client, complete all of these tasks in sequence.
v “Preparing to install”
v “Installing WebSphere MQ” on page 50
v “Verifying the client installation” on page 54
Preparing to install
Before you install WebSphere MQ, complete the following tasks.
v “Checking hardware and software requirements” on page 38
v “Setting up the user ID and group ID” on page 47
v “Creating WebSphere MQ file systems” on page 48
Additionally, if you require messages in a language other than U.S. English see,
“Displaying messages in your national language” on page 49.
This section details the operating system requirements, the prerequisite software
and optional software required for using WebSphere MQ Version 7.0. These
requirements differ in some cases depending on the system hardware on which
you will be running WebSphere MQ. Please see the appropriate section for your
installation.
Note: WebSphere MQ does not support host names that contain spaces. If you
install WebSphere MQ on a computer with a host name that contains spaces, you
will be unable to create any queue managers.
Hardware
WebSphere MQ for Linux, Version 7.0 (x86 platform) runs on any computer that
supports the x86 machine architecture, capable of running the required level of a
compatible operating system.
WebSphere MQ for Linux, Version 7.0 (x86-64 platform) runs on any computer that
supports the x86-64 (AMD64, Intel EM64T or compatible) machine architecture,
capable of running the required level of a compatible operating system.
WebSphere MQ for Linux, Version 7.0 (POWER platform) runs on any 64-bit
System i or System p IBM POWER processor-based systems only, capable of
running the required level of a compatible operating system.
WebSphere MQ for Linux, Version 7.0 (zSeries s390x platform) runs on any IBM
System z9 or IBM eServer (or equivalent) 64-bit processor that is explicitly
compatible and fully capable of running a specified operating system.
WebSphere MQ for Linux, Version 7.0 (x86 platform) has been tested with the
following distributions:
v Red Hat Enterprise Linux (RHEL) V4.0 or later update
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) V9
v SuSE Linux Enterprise Server (SLES) V10
v NLPOS9 FP1
v IRES V2
v Red Flag Data Centre V5.0
WebSphere MQ for Linux, Version 7.0 (x86-64 platform) has been tested with the
following distributions:
v Red Hat Enterprise Linux V4.0 or later update
38 Websphere MQ for Linux: Quick Beginnings
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) 9
v SuSE Linux Enterprise Server (SLES) 10
WebSphere MQ for Linux, Version 7.0 (POWER platform) has been tested with the
following distributions:
v Red Hat Enterprise Linux (RHEL) V4.0
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) V9
v SuSE Linux Enterprise Server (SLES) V10
WebSphere MQ for Linux, Version 7.0 (zSeries s390x platform) has been tested with
the following distributions:
v Red Hat Enterprise Linux V4.0
v Red Hat Enterprise Linux (RHEL) V5.0
v SuSE Linux Enterprise Server (SLES) 9
v SuSE Linux Enterprise Server (SLES) V10
Connectivity Requirements
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86
platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (x86 platform) operating system. You can use any
communications hardware supporting TCP/IP
LU6.2 If you want to use the SNA LU6.2 support on WebSphere MQ for Linux,
Version 7.0 (x86 platform) you need the IBM Communications Server for
Linux Version 6.2. The Communications Server is available as a PRPQ
product from IBM. For more details, see:
http://www.ibm.com/software/network/commserver/about
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (x86-64
platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (x86-64 platform) operating system. You
can use any communications hardware supporting TCP/IP
The network protocols supported by WebSphere MQ for Linux, Version 7.0 (zSeries
s390x platform) are:
Protocol Comments
TCP/IP TCP/IP is part of the Linux (POWER platform) operating system. You can use
any communications hardware supporting TCP/IP
LU6.2 If you want to use the SNA LU6.2 support on WebSphere MQ for Linux,
Version 7.0 (POWER platform) you need the IBM Communications Server
for Linux Version 6.2. The Communications Server is available as a PRPQ
product from IBM. For more details, see:
http://www.ibm.com/software/network/commserver/about
Storage Requirements
The storage requirements for the WebSphere MQ for Linux depend on which
components you install, and how much working space you need. This, in turn,
depends on the number of queues that you use, the number and size of the
messages on the queues, and whether the messages are persistent. You also require
archiving capacity on disk, tape or other media.Approximate space requirements
are listed in the following table:
Table 6. Space requirements for WebSphere MQ for Linux client installation
Platform x86 x86-64 POWER zSeries s390x
Space (MB) 126 126 216 183
You can use the df command to determine the amount of free space on your
system.
After checking the requirements in this topic, proceed to “Prerequisite software for
using SSL.”
If you intend to run SSL channels then you must have the g++ version 3.2 runtime
libraries installed. The GNU g++ libraries are called libgcc_s.so and
If you have a distribution that does not install libgcc_s.so and libstdc++.so.5
into /usr/lib, then you will have to do one of the following:
v Locate and install the packages from your distribution vendor that contain these
libraries.
v Install the GNU gcc and g++ compilers from another location, for example the
home page for the GNU compiler collection at http://gcc.gnu.org/
Ensure that the libraries listed above are included in /usr/lib after installation.
Note: On 64–bit platforms, the 32–bit and the 64–bit versions of the package
should both be installed. This is so that 32–bit and 64–bit processes can both use
SSL functions.
If you want to use the SSL support, you need IBM Global Security Kit V7. This is
supplied with WebSphere MQ as one of the components available for installation.
If you are migrating from WebSphere MQ Version 5.3 and have no other
requirement for the IBM Global Security Kit V6, you can uninstall it using the
process described in Chapter 6, “Uninstalling WebSphere MQ,” on page 65, the
package name is gskbas-6.0-n.nn.<arch>.rpm.
The following compilers are supported for WebSphere MQ for Linux, Version 7.0.
C applications/C++ applications
v GNU C Compiler (gcc) and g++ Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++ Version 4.1.1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++ Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL applications
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Transaction Monitors
v IBM TXSeries V6.1
v IBM TXSeries V6.2
v IBM WebSphere Application Server (WAS) V5.1
v IBM WebSphere Application Server (WAS) V6.0.2
v IBM WebSphere Application Server (WAS) V6.1
v BEA Tuxedo V9.1
v BEA WebLogic Server V9.1
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5.0 (SR1 or later). An
appropriate runtime environment is provided in the JDK provided on the
WebSphere MQ Server CD-ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using Java with WebSphere MQ see WebSphere MQ
Using Java.
For further information about using SOAP with WebSphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK might not be FIPS level 140-2 compliant and by using it with
WebSphere MQ, WebSphere MQ Version 7.0 will not comply with the FIPS 140-2
standards.
v SOAP is not supported.
The following compilers are supported for WebSphere MQ for Linux, Version 7.0.
C applications/C++ applications
v GNU C Compiler (gcc) and g++, Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++, Version 4.1.1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++, Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL applications
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java applications
v 32-bit
– IBM® 32-bit SDK for Linux on Intel® architecture, Java™ 2 Technology Edition,
Version 1.4.2
– IBM 32-bit SDK for Linux on Intel architecture, Java 2 Technology Edition
V5.0 (SR1 or above)
– IBM 32-bit SDK for Linux on Intel architecture, Java 2 Technology Edition
V6.0
– Java 2 Platform, Standard Edition (J2SE) V1.4.2 from Sun Microsystems, Inc.
– Java 2 Platform, Standard Edition (J2SE) V1.5 from Sun Microsystems, Inc.
v 64-bit
– IBM SDK for Linux on AMD64/EM64T architecture, Java 2 Technology
Edition, Version 1.4.2
– IBM SDK for Linux on AMD64/EM64T architecture, Java 2 Technology
Edition, Version 5
– IBM SDK for Linux on AMD64/EM64T architecture, Java 2 Technology
Edition, Version 6
– Java 2 Platform, Standard Edition (J2SE) V1.5 from Sun Microsystems, Inc.
Transaction Monitors
v IBM TXSeries V6.1
v IBM TXSeries V6.2
v IBM WebSphere Application Server (WAS) V5.1
v IBM WebSphere Application Server (WAS) V6.0.2
v IBM WebSphere Application Server (WAS) V6.1
v BEA Tuxedo V9.1
v BEA WebLogic Server V9.1
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5.0 (SR1 or later). An
appropriate runtime environment is provided in the JDK supplied on the
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using Java with WebSphere MQ see WebSphere MQ
Using Java.
For further information about using SOAP with WebSphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK may not be FIPS level 140-2 compliant and by using it with WebSphere
MQ, WebSphere MQ Version 7.0 will not comply the FIPS 140-2 standards.
v SOAP is not supported.
The following compilers are supported for WebSphere MQ for Linux applications
on the POWER platform:
C/C++
v GNU C Compiler (gcc) and g++ Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++ Version 4.1,1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++ Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java
v 32-bit
Transaction Monitors
v IBM TXSeries® V6.1
v IBM TXSeries® V6.2
v WebSphere Application Server, Version 5.1
v WebSphere Application Server, Version 6.0.2
v WebSphere Application Server, Version 6.1
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5.0 (SR1 or later). An
appropriate runtime environment is provided in the JDKs provided on the
WebSphere MQ Server CD- ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using Java with WebSphere MQ see WebSphere MQ
Using Java.
For further information about using SOAP with Websphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
On the POWER platform, the 32-bit and 64-bit JDKs are typically installed to
different locations, for example, the 32-bit JDK is located in /opt/IBMJava2-ppc-50
and the 64-bit JDK is located in /opt/IBMJava2-ppc64-50. Ensure that the PATH
variable is correctly set for your applications that use Java. To use the Postcard
application described in WebSphere MQ for Linux Quick Beginnings“WebSphere MQ
Components” on page 21 you need to use a 32-bit JDK. You can check the version
installed using the following command:
java -version
The following compilers are supported for WebSphere MQ for Linux applications
on the zSeries s390x platform.
C/C++
v GNU C Compiler (gcc) and g++ Version 3.3 (SLES/9)
v GNU C Compiler (gcc) and g++ Version 4.1.1 (SLES/10 & RedHat/5)
v GNU C Compiler (gcc) and g++ Version 3.4 (RedHat/4)
Note: The C++ support libraries are installed in directories whose names match
the compiler version, /opt/mqm/lib/<version>, and links are placed from
/opt/mqm/lib to the default version, 3.3.
COBOL
v Micro Focus Server Express, V4.0
v Micro Focus Server Express, V5.0
Java
v IBM 31-bit SDK for Linux on System z9, Java 2 Technology Edition, Version 1.4.2
v IBM 31-bit SDK for Linux on System z9, Java 2 Technology Edition V5.0 (SR1 or
above)
v IBM 31-bit SDK for Linux on System z9, Java 2 Technology Edition V6.0
v IBM 64-bit SDK for Linux on System z9, Java 2 Technology Edition, Version 1.4.2
v IBM 64-bit SDK for Linux on System z9, Java 2 Technology Edition V5.0 (SR1 or
above)
v IBM 64-bit SDK for Linux on System z9, Java 2 Technology Edition V6.0
Transaction Monitors
v IBM TXSeries V6.1
v IBM TXSeries V6.2
v IBM WebSphere Application Server (WAS) V5.1
If you want to use Java Messaging and SOAP (Simple Object Access Protocol)
Support, you need a Java Runtime Environment Version 5 (SR1 or later). An
appropriate runtime environment is provided in the JDK provided on the
WebSphere MQ Server CD- ROM. See WebSphere MQ for Linux Quick
Beginnings“WebSphere MQ Components” on page 21 for package information.
www.ibm.com/software/integration/websphere/mqplatforms/supported.html
Apache Axis V1.4 provides support for SOAP and is available on the server
CD-ROM.
For further information about using SOAP with WebSphere MQ see WebSphere
MQ Using Web Services .
If you use a JDK other than the one supplied by WebSphere MQ Version 7.0 you
should be aware that:
v The JDK might not be FIPS level 140-2 compliant and by using it with
WebSphere MQ, WebSphere MQ Version 7.0 will not comply with the FIPS 140-2
standards.
v SOAP is not supported.
It is also suggested that you set the mqm user’s home directory to /var/mqm.
Users do not need mqm group authority to run applications that use the queue
manager; it is needed only for the administration commands.
The topics contained in this section describe how to prepare your file system for
installing WebSphere MQ. Perform these tasks before installation.
The WebSphere MQ product code is installed in /opt/mqm. If you cannot install the
product code in the /opt/mqm file system because the file system is too small to
contain the product, you can do one of the following:
1. Create a new file system and mount it as /opt/mqm. If you choose this option,
the new file system must be created and mounted before installing the product
code.
2. Create a new directory anywhere on your machine, and create a symbolic link
from /opt/mqm to this new directory. For example:
mkdir /bigdisk/mqm
ln -s /bigdisk/mqm /opt/mqm
If you choose this option, the new directory must be created, and the link
created, before installing the product code.
The file system into which the code is installed can be a remote network device,
for example, NFS. However, you must define the mount options defined on that
device to allow setuid programs, including those which are setuid root, to run.
To determine the size of the /var/mqm file system for a client installation, consider:
v The size of the error log files written to the /var/mqm/errors directory
This file contains example stanzas, with the name=value pairs commented out. This
file should include the following lines, after the header:
TCP:
# KeepAlive=Yes
Note, that if you are using a common configuration file for multiple clients, either
in the WebSphere MQ installation directory or in another location using the
MQCLNTCF environment variable, you should grant read access to all user
identifiers under which the WebSphere MQ client applications run. If, for any
reason, the file cannot be read, the failure is traced and the search logic continues
as if the file had not existed.
Installing WebSphere MQ
This chapter tells you how to install the WebSphere MQ for Linux client. If you
want to install the WebSphere MQ server see Chapter 2, “Installing a WebSphere
MQ server,” on page 5.
Before you start the installation procedure, make sure you have prepared your
system as described in “Preparing to install” on page 37.
For more information about SSL, see the WebSphere MQ Security book.
If you want to install the client on the same machine as a WebSphere MQ server,
see Chapter 4, “Installing a client on the same machine as a server,” on page 59.
This installation procedure uses the Red Hat Package Manager (RPM) installer,
enabling you to choose which components you want to install. The components (or
filesets) are listed in “WebSphere MQ Components” on page 51; you must install at
least the Runtime and Client components.
1. Log in as root.
2. If you are installing from the CD-ROM, insert the WebSphere MQ for Linux
Client CD-ROM, and make the mount point your current directory.
3. Run the mqlicense.sh script. If you want to view a text-only version of license,
which can be read by a screen-reader, type:
Note: Ensure that /bin/sh is a valid shell interpreter compatible with the
Bourne shell, otherwise the post-installation configuration of WebSphere MQ
will not complete successfully.
If your Linux machine was not installed with RPM, you might see a
prerequisites failure of /bin/sh when you try to install WebSphere MQ. This is
because the RPM tables do not recognize that a valid shell interpreter is
installed.
If this occurs, you can reinstall the /bin/sh shell using RPM, or specify the
RPM option --nodeps to disable dependency checking during installation of
WebSphere MQ.
WebSphere MQ Components
When you install WebSphere MQ for Linux, you can choose which components to
install.
When you install WebSphere MQ for Linux, you can choose which components to
install.
Table 7. WebSphere MQ components and packages
Component Description Package Server Client
(with
SSL)
Runtime Mandatory component. Needed for MQSeriesRuntime X X
application development and provides
support for external applications.
SDK Required for compiling applications. MQSeriesSDK X X
Client The WebSphere MQ client is a small subset MQSeriesClient X X
of WebSphere MQ, without a queue
manager. Provides remote access to
WebSphere MQ. Must be connected to a
server. To install a client on the same
machine as a server, use the Server
CD-ROM; otherwise use the Clients
CD-ROM.
Sample Sample application programs. Needed if MQSeriesSamples X X
programs you want to check your WebSphere MQ
installation using the verification
procedures.
You will see messages telling you that the queue manager has been created,
and that the default WebSphere MQ objects have been created.
2. To start the queue manager, type:
strmqm
A message tells you that an MQSC session has started. MQSC has no command
prompt.
4. Define a local queue called QUEUE1 by entering the following command:
define qlocal (queue1)
Note: Once you have set the mcauser attribute to mqm, you MUST set the
attribute back to its default value after you have verified the installation to
prevent any security vulnerabilities, as described in: “Testing communication
between workstations” on page 57.
A message tells you when the channel has been created.
6. Define a listener by entering the following command:
Note: If you do not specify the port that the listener should listen on, by
omitting the port parameter from the command below, the default of 1414 is
used. If you want to specify a port other than 1414, you must include the port
parameter in the command, as shown.
define listener (listener1) trptype (tcp) control (qmgr) port (port_number)
Where
port_number
is the name of the port the listener should run on. This must be the same
as the number used when defining your client-connection channel in
“Setting up the client workstation” on page 56.
7. Start the listener by entering the following command:
start listener (listener1)
8. Stop MQSC by typing:
end
To continue with the verification process, see “Setting up the client workstation.”
where
server-hostname
Is the host name of the server
n.n.n.n
Is the network address of the server
2. Press Ctrl-C to stop the ping command.
3. To create a client-connection channel, set the MQSERVER environment variable as
follows:
export MQSERVER=’CHANNEL1/TCP/server-hostname(port)’
where
CHANNEL1
Is the name of the server-connection channel already defined on the
server
TCP Is the communications protocol.
server-hostname
Is the TCP/IP host name of the server.
port Is optional and is the port number that the server is listening on, you
specified this in step 6 of “Setting up the server workstation” on page
54. If you do not give a port number, WebSphere MQ uses:
v The one specified in the qm.ini file.
Your message is now on the queue and the command prompt is displayed
again.
4. To get the message from the queue located on the server, enter the following
command:
./amqsgetc QUEUE1 saturn.queue.manager
The sample program starts and your message is displayed. After a pause, the
sample ends and the command prompt is displayed again.
Note: You must now set the mcauser attribute back to its default value:
1. Start MQSC commands by entering the following command:
runmqsc
A message tells you that an MQSC session has started. MQSC has no command
prompt.
2. In the MQSC window, set the mcauser attribute to its default value by entering
the following command:
alter channel(channel1) chltype (svrconn) mcauser(’ ’)
3. Stop MQSC by typing:
end
You have now set the mcauser attribute back to its default value.
The latest information about service updates and downloads can be found on the
Internet, at:
http://www.ibm.com/software/integration/mqfamily/support/
Service is delivered in the form of RPM update images, which are applied using
the RPM installation tool. Additional disk space is required for the update images,
as the updated files are kept in /opt/mqm/maintenance directory, to allow service to
be removed and the previous level restored. Do not delete or move this directory
or the files it contains.
Updates are cumulative. You can install your chosen update directly, without
installing any previous updates first. The maintenance might contain updates for
one or more package. You must install those parts of an update that correspond to
the packages that are installed on your machine.
1. Before installing maintenance you must stop all WebSphere MQ applications on
the machine and the applications accessing remote machines.
2. End all WebSphere MQ activity:
a. Log in as a user in group mqm.
b. Use the dspmq command to display the state of all the queue managers on
the system.
c. Use the endmqm command to stop all running queue managers.
d. Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName
e. To check that you have stopped all necessary WebSphere MQ activity, type:
ps -ef | grep mq
Check that there are no processes listed that are running command lines
beginning amq or runmq. Ignore any that start with amqi.
3. Log in as root.
4. Change into the directory containing the maintenance packages.
5. Use the ls command to list the available updates. For example, if there are
level 1 service updates for the Runtime, SDK and Server packages, you will see
the following:
Note: You must install all packages in a service update that apply to those
packages that are currently installed on your system.
8. Repeat step 4, and you will see that the Runtime, SDK and Server packages are
now at level 1:
MQSeriesRuntime-7.0.0-0
MQSeriesSDK-7.0.0-0
MQSeriesServer-7.0.0-0
MQSeriesRuntime-Uxxxx-7.0.0-1
MQSeriesSDK-Uxxxx-7.0.0-1
MQSeriesServer-Uxxxx-7.0.0-1
For further information on using RPM to install software packages, see your Linux
documentation.
When service is installed, the original versions of replaced files are saved to allow
the updates to be removed if necessary. To restore the previous service level, issue
an RPM uninstall for all the packages that were updated by the maintenance
package as follows:
1. Before installing maintenance you must stop all WebSphere MQ applications on
the machine and the applications accessing remote machines.
2. End all WebSphere MQ activity:
a. Log in as a user in group mqm.
b. Use the dspmq command to display the state of all the queue managers on
the system.
c. Use the endmqm command to stop all running queue managers.
d. Stop any listeners associated with the queue managers, using the command:
endmqlsr -m QMgrName
e. To check that you have stopped all necessary WebSphere MQ activity, type:
ps -ef | grep mq
Check that there are no processes listed that are running command lines
beginning amq or runmq. Ignore any that start with amqi.
3. Log in as root.
4. To find out which packages are installed on your machine, enter the following:
For further information on using RPM to install software packages, see your Linux
documentation.
Check that there are no processes listed that are running command lines
beginning amq or runmq. Ignore any that start with amqi.
3. Log in as root.
4. Before you uninstall WebSphere MQ for Linux you must find out the names of
the packages (components) currently installed on your system. To list all the
packages with their version information, enter the following:
rpm -qa | grep MQSeries
rpm -qa | grep ibm-java
rpm -qa | grep gsk
Alternatively, remove all the components at the same time by appending all the
package names to the rpm command arguments. For example, to remove the
runtime, Server and SDK components, enter the following:
rpm -ev MQSeriesRuntime MQSeriesServer MQSeriesSDK
6. After uninstalling , you might want to delete the contents of /var/mqm, which is
not removed by the uninstallation. Only do this if you do not need your
queue manager data. For example, do not delete the content if you plan to
migrate to a later version of WebSphere MQ.
If there is similar information in this book and any of the books in the following
list, the information in this book should take precedence.
You can either view the documents directly from CD, or you can install them on
your computer (either before or after installing the WebSphere MQ product).
Prerequisite software
To use the Information Center you must have one of the following browsers
installed on your system:
v Mozilla 1.7 or later
v Firefox 1.5
v Firefox 2.0
v Konqueror (UI base mode only. This means that only the basic functions of the
information center will work; for example: All function that supports base user
activities with the content such as displaying a topic, locating a topic via the
table of contents, searching for a topic and displaying it)
When you insert the Documentation CD, the welcome panel opens. If it does not
appear when you insert the Documentation CD, you can run the CD from
Windows Explorer.
Click the View Information Center icon to open and view the Information Center.
The Information Center launches in a browser window after a few moments.
Click the Close Information Center icon to close the Information Center.
To check whether there are any updates available and download them to your
local system:
v Click Update on the tool bar. A list of installed document sets is displayed.
v Click Find Updates on the bottom of the list to start finding available updates.
The help system searches for updates at a server location. A progress bar is
displayed while updates are being located.
v When updates have been located, in the search results for the latest updates, two
lists are displayed:
– Updates for existing documentation
– New documentation
Select the check boxes corresponding to the documentation sets you want to
install.
v Click Install Updates to install the documentation sets you have selected.
v Click Finish when the installation is done.
You do not need to restart the help system. It will refresh automatically to show
the updated content.
PDF
A PDF (Portable Document Format), corresponding to each book, is available on
the documentation CD. You can read PDFs using Adobe Acrobat Reader. You can
download them to your own file system, or you can print them on a PostScript
printer.
The PDFs are available in U.S. English in the \docs\pdf\en_US directory on the
Documentation CD, and also in some or all of the following national languages.
After you have installed the PDFs, you can find the files in the directory in which
you installed the Information Center. To find out which ones are available in your
language, look for the appropriate directory on the CD in the form
\docs\pdf\ll_LL, where ll_LL is one of the following:
v cs_CZ (Czech)
v de_DE (German)
v es_ES (Spanish)
v fr_FR (French)
v hu_HU (Hungarian)
v it_IT (Italian)
v ja_JP (Japanese)
v ko_KR (Korean)
v pl_PL (Polish)
v pt_BR (Brazilian Portuguese)
v ru_RU (Russian)
v zh_CN (Simplified Chinese)
v zh_TW (Traditional Chinese)
You can:
v Click a folder
v Click a properties page
v Click a view
v Click a dialog
then press F1 on Windows installations or Ctrl+F1 on Linux installations. By
default, help information that typically contains one or more links to more detailed
information, is displayed in a new panel in WebSphere MQ Explorer. Alternatively,
the infopops can be set to display as a small yellow box that hovers over the
cursor.
Hardcopy books
This book, and all the books listed in Table 9 on page 67, are available for you to
order or print.
You can order publications from the IBMLink™ Web site at:
http://www.ibm.com/ibmlink
In the United States, you can also order publications by dialing 1-800-879-2755.
For further information about ordering publications, contact your IBM authorized
dealer or marketing representative.
For information about printing books, see “Publications supplied with the product”
on page 68.
Online information
The sources of information available online about WebSphere MQ Version 7.0
The WebSphere MQ books are available on the World Wide Web as well as on the
product CD-ROM. They are available in PDF and HTML format. The WebSphere
MQ product family Web site is at:
http://www.ibm.com/software/integration/mqfamily
Online help
Man pages are provided for all API calls, MQSC commands, and relevant control
commands including crtmqm, strmqm, and endmqm.
SupportPacs
http://www.ibm.com/software/integration/websphere/support
WebSphere MQ newsgroups
http://www.ibm.com/software/integration/mqfamily/support/newsgroups
IBM produces a number whitepapers that contain other useful information about
WebSphere MQ. These can be found at:
http://www.ibm.com/software/integration/websphere/library
The service support summary gives a summary of the support information and
end of service dates for in-service WebSphere MQ products. This can be found at:
http://www.ibm.com/software/integration/mqfamily/support/summary
IBM may have patents or pending patent applications covering subject matter
described in this information. The furnishing of this information does not give you
any license to these patents. You can send license inquiries, in writing, to:
For license inquiries regarding double-byte (DBCS) information, contact the IBM
Intellectual Property Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore this statement may not apply
to you.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those Web
sites. The materials at those Web sites are not part of the materials for this IBM
product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
The licensed program described in this information and all licensed material
available for it are provided by IBM under terms of the IBM Customer Agreement,
IBM International Programming License Agreement, or any equivalent agreement
between us.
COPYRIGHT LICENSE:
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the
United States, other countries, or both.
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Notices 75
76 Websphere MQ for Linux: Quick Beginnings
Index
A H printing books 70
processes, maximum 20
amqsputc sample program 57 Hypertext Markup Language processor units 55
(HTML) 71 publications
list 67
B ordering 71
bibliography 67 I
books information, ordering publications 71
ordering 71 installation Q
printing 70 components 21, 51 queue manager
file systems required 17, 48 starting 54
filesets 21, 51
C kernel configuration 19
of client 50
capacity units 55
server verification procedure 25 R
checking installation receiver server, verification of 29
verification 31
server 31 removing a WebSphere MQ server or
of local installation 25
client setup, example 56 client 65
of server to server installation 26
client-connection channel, example 56
installation verification
configuration, kernel 19
local installation 31, 36
creating
file system for working data 18, 48
server-to-server 33 S
using Postcard application 31, 33, 36 server-connection channel, example 55
groups on server 16, 47
users 16, 47 setting up the server, example 54
softcopy information 71
K
D kernel configuration 19
T
deleting a WebSphere MQ server or
client 65 translated
documentation 67 L messages 24, 49
LANG environment variable 24, 49
E U
environment variable M uninstalling a WebSphere MQ server or
LANG 24, 49 maintenance 61 client 65
MQSERVER 56 manuals, ordering 71 user ID, creating on server 16, 47
NLSPATH 24, 49 maximum open files 20 users, creating 16, 47
example maximum processes 20
client setup 56 message, translated 24, 49
client-connection channel, MQSERVER environment variable 56 V
defining 56 verification
MQSC, stopping 55 communication between servers 30
putting a message on the queue
queue manager
57 N local installation 31, 36
national language of local installation 25
starting 54 of server to server installation 26
support 24, 49
server-connection channel, on receiver server 29
NLSPATH environment variable 24, 49
creating 55 server-to-server 33
using Postcard application 31, 33, 36
F O verifying installation
server 31
online books 71
file system
open files, maximum 20
creating for working data 18, 48
ordering publications 71
W
WebSphere MQ for Linux
G P applying maintenance 61
groups, creating 16, 47 client installation 50
PDF (Portable Document Format) 70 components and filesets 21, 51
Portable Document Format (PDF) 70 documentation 67
Postcard open files, maximum 20
introduction 31 processes, maximum 20
Feel free to comment on what you regard as specific errors or omissions, and on
the accuracy, organization, subject matter, or completeness of this book.
Please limit your comments to the information in this book and the way in which
the information is presented.
To make comments about the functions of IBM products or systems, talk to your
IBM representative or to your IBM authorized remarketer.
When you send comments to IBM , you grant IBM a nonexclusive right to use or
distribute your comments in any way it believes appropriate, without incurring
any obligation to you.
You can send your comments to IBM in any of the following ways:
v By mail, to this address:
GC34-6924-00
Spine information: