Oracle GlassFish Message Queue 4.4.2 Developer's Guide for Java Clients

Arguments to Specify When Initializing an Embedded Broker

When initializing an embedded broker, you can provide a list of arguments as properties.

Because a Java client runtime (not the imqbrokerd utility) is initializing the broker, you should specify these arguments:

-imqhome path

The home directory of the Message Queue installation (see Table P–5)

-libhome path

The directory in which Message Queue libraries are stored. This location depends on the distribution from which Message Queue was installed: 

  • From an IPS image: IMQ_HOME/lib

  • From Solaris SVR4 packages: /usr/share/lib/imq

  • From Linux RPMs: /opt/sun/mq/share/lib

-varhome path

The directory in which Message Queue temporary or dynamically created configuration and data files are stored installation (see Table P–5)

You can also specify imqbrokerd options as arguments. Two useful options to specify as arguments are:

-name instanceName

The instance name of the broker. 

-port portNumber

The port number for the broker's Port Mapper. This is port number on which the broker listens for client connections.