Sun Java System Message Queue 4.1 Administration Guide

ProcedureTo Cluster HA Brokers Using Instance Configuration Files

  1. For each broker in the cluster:

    1. Start the broker with the imqbrokerd command.

      The first time a broker instance is run, an instance configuration file (config.properties) is automatically created.

    2. Shut down the broker.

      Use the imqcmd shutdown bkr command.

    3. Edit the instance configuration file to specify the broker’s HA-related configuration properties.

      Table 8–1 shows the required property values.

    4. Specify any additional, vendor-specific properties that may be needed.

      Table 8–2 and Table 8–3 show the required properties for HADB and MySQL databases, respectively.

  2. Place a copy of, or a symbolic link to, your JDBC driver’s .jar file in the appropriate location, depending on your platform:

      Solaris: /usr/share/lib/imq/ext/


      Linux: /opt/sun/mq/share/lib/


      Windows: IMQ_VARHOME\lib\ext


  3. Create the database schema needed for Message Queue persistence.

    Use the imqdbmgr create tbl command; see Database Manager Utility.

  4. Restart each broker with the imqbrokerd command.

    The brokers will automatically register themselves into the cluster on startup.