Sun Java System Message Queue 3.7 UR1 Installation Guide

Configuring the Java Runtime

At startup, the Message Queue broker checks to make sure it has access to the required Java runtime version (JDK/JRE 1.5). 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:

  1. Pass in the JDK or JRE using either the imqbrokerd - javahome or -jrehome command line options, respectively. If you specify both, the last one on the command line will take precedence).

  2. Set the JDK or JRE in the IMQ_JAVAHOME environment variable.

  3. Let the broker use the installed JDK. The broker tries to locate the latest JDK installed on the system.

To check which version the broker is using, you can start the broker with the following command: imqbrokerd -verbose