Skip to main content

Configuring standalone ActiveMQ broker

There are a number of configuration options, and these are listed by entering activemq -h.

You can configure the ActiveMQ broker by using either a configuration file or via broker URI. The default location for configuration files is in activemq/conf.

The syntax is Main start [start-options] [uri]

[start-options] syntax
Option Description Example
-D<name>=<value> Define a system property

activemq -Dactivemq.home= <TalendRuntimePath>/activemq

(default if using Talend ESB)

--version Display the version information activemq --version
-h,-?,--help Display the start broker help information activemq -h

Note in the table below, the transport URI specifies the transport and ports to connect to the broker, for example TCP to connect to a remote ActiveMQ using a TCP socket, or VM which allows clients to connect to a broker in a container within the same VM. (Having multiple connectors may improve reliability and load balancing.) For the full list of options, see http://activemq.apache.org.

[uri] parameter syntax
Example Type Description
xbean:file:activemq.xml XBean based Loads the xbean configuration file from the current working directory
activemq xbean:activemq.xml XBean based Loads the xbean configuration file from the classpath
activemq broker:(tcp://localhost:61616, tcp://localhost:5000)? useJmx=true URI based Configures the broker with 2 transport connectors and jmx enabled.
activemq broker:(tcp://localhost:61616, network:tcp://localhost:5000)?persistent=false URI based Configures the broker with 1 transport connector, and 1 network connector and persistence disabled
Note, the broker URI information can also be added to the configuration file instead of being specified on the command line.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!