|
|
| Sun ONE Message Queue Installation Guide |
Chapter 2 Solaris Installation
This chapter explains the following topics as they apply to a Solaris installation:
Hardware and Software Requirements
Configuring MQ for Automatic Startup
Hardware and Software Requirements
At a minimum, your Solaris development system (SPARC Platform Edition) should satisfy the minimum requirements indicated in the following table.
Installing MQ on Solaris
The MQ product can be downloaded from the Sun ONE website or installed from the product CD-ROM. See the appropriate section below for details.
Installing from the Web
The following instructions explain how to download and install the MQ product on Solaris from the Sun ONE website.
To install MQ on Solaris from the Web
Download the MQ product from the website into an empty, temporary working directory.
- sh imq3_0-edition-solsparc.sh
Read the product license. Installation and use of the product is subject to acceptance of the license agreement.
- where edition takes one of the following values: plt or ent, depending on whether you are installing the Platform or Enterprise Edition, respectively.
- The command displays the first page of the license for the product.
To display the entire license, one page at a time, repeatedly press the space bar. When you reach the end of the license, the program prompts you to accept the license.
If you choose not to accept the license agreement, type no or n and the installation terminates.
Extract the archived files:If you choose to accept the license agreement, type yes or y and the installation continues. The following files are extracted:
- /bin/zcat imq3_0-edition-solsparc.tar.Z | tar xvfp -
Change directories:
- A new directory, imq3_0-pkgs, is created.
Note To avoid possible problems, do not use the GNU tar utility when installing MQ.
Become root:
- cd imq3_0-pkgs
Run the pkgadd command to install the packages:
- su root
- pkgadd -d ./
Type q to quit.
- The pkgadd utility lists the names of all packages in the directory available for installation (see Table 2-2). When prompted, indicate the packages you want to install.
- In a development environment, you will probably install all packages (except, possibly, SUNWjhrt). In a production environment, however, you only need install SUNWiqu, SUNWiqr, SUNWiqlpl (or SUNWiqlen).
- The pkgadd utility installs the packages you specified, perhaps asking for additional information, and eventually returns to the original prompt, displaying the list of packages available for installation.
Back up the imq3_0-edition-solsparc.sh file from your temporary working directory.
Clean up all remaining files in your temporary working directory.
- This is your logical media. Treat this file as you would any other installation media. Place a copy in a safe location in case you encounter a situation (such as a system failure) that requires reinstallation of the product.
Installing from CD-ROM
The following instructions explain how to install the MQ product on Solaris from CD-ROM.
Note A compressed installation file (tar.Z) is provided on the CD if you do not want to install MQ directly from the packages on the CD.
To install MQ on Solaris from CD-ROM
Log in as root or change to superuser.
Insert the MQ CD into your CD-ROM drive.
- For example, type the following at a command prompt:
- su root
- Then type your superuser password.
- If the Volume Manager software is running on your machine, the CD-ROM is automatically mounted to the /cdrom/messagequeue3_0 directory.
- If the Volume Manager is not running on your machine:
Create a directory called /cdrom/messagequeue3_0 by typing:
Mount the CD-ROM manually:
- mkdir -p /cdrom/messagequeue3_0
- mount -rF hsfs cdrom-device /cdrom/messagequeue3_0
- An example of cdrom-device is /dev/dsk/c0t0d0s0.
- Open and read (using your preferred text editor) the LICENSE file located in the solaris/ directory of the CD.
If you choose NOT to accept the license agreement, discontinue installation and contact the place where you purchased the product to determine the return policy.
Change to the directory on the CD containing the installation packages. For example, type:If you choose to accept the agreement, continue with the installation steps below.
- cd /cdrom/messagequeue3_0/solaris/imq3_0-pkgs
Run the pkgadd command to install the packages:
- The contents of this directory vary depending on the product edition.
- pkgadd -d ./
When the pkgadd prompt returns, type q to quit.
- The pkgadd utility lists the names of all packages in the directory available for installation. When prompted, indicate the packages you want to install (see Table 2-2).
Configuring MQ for Automatic Startup
If you wish to set the broker (the MQ message server) for automatic startup, you need to become root and edit the following configuration file:
The startup properties you can set in this configuration file are shown in Table 2-3:
- /etc/imq/imqbrokerd.conf
To check that startup changes are correct (without booting the system), you can, as root, explicitly run the MQ initialization script (S52imq) in "debug" mode:
- env DEBUG=1 /etc/rc3.d/S52imq start
Configuring the Java Runtime for MQ
At startup time, a broker (the MQ message server) checks to make sure it has access to the required Java runtime version (JDK/JRE 1.4). There are a number of ways you can configure or set the JRE used by the broker. These are shown in the following list, in order of precedence:
Pass in the JDK or JRE using either the imqbrokerd -javahome or -jrehome command line options, respectively (if both are passed in, the last one on the command line will take precedence).
To figure out why a broker is picking up a specific JDK/JRE, you can start the broker with the following command:Set the JDK or JRE in the IMQ_JAVAHOME environment variable.
Let the broker use the installed JDK.
- This is the JDK located in /usr/j2se
- imqbrokerd -verbose
Upgrading Editions
MQ comes in two editions, as explained in "Product Editions".To upgrade from the Platform Edition to the Enterprise Edition, you need to install the Enterprise Edition license. This installation does not overwrite the MQ modules already installed and does not modify the configuration of your MQ messaging system.
To install the Enterprise Edition license you need only the SUNWiqlen package contained in the Enterprise Edition. The SUNWiqlen package is placed automatically in the imq3_0-pkgs directory (Web installation) or in the solaris/imq3_0-pkgs directory (CD-ROM installation) as a result of running the installation command script, uncompressing the file archive, and extracting the archived files.
To upgrade to Enterprise Edition on Solaris
Stop any running brokers.
Follow the installation procedure in "Installing from the Web", Step 1 through Step 6 or in "Installing from CD-ROM", Step 1 through Step 3.
- imqcmd shutdown bkr -u name -p password [-b hostName:port]
When the installation is finished, add the SUNWjqent package:
Verify that the Enterprise Edition license is available by running the following command:
- pkgadd -d . SUNWiqlen
- imqbrokerd -license
Where To Go Next
Read the README and MQ Release Notes (relnotes.html) files.
The README includes information on where to find documentation, news and updates, and how to send feedback.
For an overview of Sun ONE Message Queue concepts, a brief introduction to writing and compiling a client application, see the MQ Developer's Guide.The MQ Release Notes contain information on code and documentation changes, open bugs, and important technical notes. This document is available on the Sun ONE website.
For details on configuring brokers and managing an MQ messaging system, see the MQ Administrator's Guide.
For class and member information used when writing a client application, browse the API documentation in the /usr/share/javadoc/imq directory.
To uninstall the product, see the following section.
Uninstalling MQ on Solaris
The following instructions explain how to uninstall MQ.
Stop any running client applications.
Unless you want to retain dynamic broker data, remove all data files associated with each broker instance.
- imqcmd shutdown bkr -u name -p password [-b hostName:port]
If you wish to preserve the MQ flat file user repository and the MQ access control file, copy the following files to some safe location before removing MQ packages (they can be restored after re-installing or upgrading MQ):
- imqbrokerd -name brokerName -remove instance
Determine which MQ packages are installed.
- /etc/imq/passwd
- /etc/imq/accesscontrol.properties
Become root by typing:
- To see a list of MQ packages installed on your system using pkgadd, type:
- pkginfo | grep SUNWiq
- su root
Remove the MQ packages that were installed with pkgadd.
- When prompted, type your root password.
When prompted, confirm your removal request by typing y.
- Issue the following command:
- pkgrm <packagename>
- where <packagename> is a package name from the previous list.
- To remove multiple packages, separate the package names by a space.
Previous Contents Next
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
Last Updated June 20, 2002