Configure ActiveMQ

Content Services requires ActiveMQ for message queuing. ActiveMQ is also used by various other products.

The standard ActiveMQ installation runs with a basic configuration. You can configure and extend ActiveMQ based on your requirements.

For information about installing ActiveMQ for your specific product, see:

For more advanced configuration, such as security, transport connectors, or memory settings, see Configure advanced settings for ActiveMQ.

Set up ActiveMQ

Set up Apache ActiveMQ to enable message queuing. If you already have an ActiveMQ instance connected to Content Services, you don’t need to perform these step.

If you don’t already have an ActiveMQ instance, install ActiveMQ and follow the steps below.

See supported platforms for supported versions.

  1. Stop the server.

  2. Define the location of ActiveMQ in your file:

    where server is the host name of the server where ActiveMQ is installed.

    When you set up ActiveMQ, the Content Services events and messaging subsystems are set to start up automatically.

    Any changes to require you to restart Content Services to apply the changes.

Configure advanced settings for ActiveMQ

Some modules require setting up and configuring ActiveMQ to enable high-performance clustering and authentication.


ActiveMQ should be clustered to achieve fault tolerance and reliable high performance load balancing of messages. The default URL configuration for both the repository and your module must use the fail over transport. For more information, see ActiveMQ - clustering.


You can secure the repository - ActiveMQ - your module’s topic and queue communication using authentication, authorization, and SSL encryption. For more information, see ActiveMQ - security and ActiveMQ - using SSL.

For example, to configure authentication, add the following code snippet under the broker element in sync/activemq/apache-activemq-5.15.8/confactivemq.xml:

            <authenticationUser username="system" password="manager" groups="users,admins"/>
            <authenticationUser username="user" password="password" groups="users"/>
            <authenticationUser username="guest" password="password" groups="guests"/>

                   <authorizationEntry topic="Consumer.*>" read="users"
                    write="users" admin="users"/>
                   <authorizationEntry topic="ActiveMQ.Advisory.>" read="guests,users"
                   write="guests,users" admin="guests,users"/>
                   <authorizationEntry topic="" read="guests,users"
                    write="guests,users" admin="guests,users"/>

This configures ActiveMQ to use basic authentication (username and password) and limit access to the your module’s topic Consumer.* Both the repository and sync service will have to provide a username and password. It it fails, an exception will be shown in the repository and the sync service logs.

Here’s an example of the exception in the repository log:

Caused by: java.lang.SecurityException: User name [null] or password is invalid.

Here’s an example of the exception in the sync service log:

ERROR [2016-03-16 16:07:21.251] [Camel (alfrescoServiceCamelContext) thread #3 -
org.apache.camel.component.jms.DefaultJmsMessageListenerContainer - Could not refresh JMS Connection
for destination
- retrying in 5000 ms. Cause: User name [null] or password is invalid.

The module’s ActiveMQ username and password can be set using the properties, messaging.username and messaging.password. The repository ActiveMQ username and password can be set using the properties and

Additionally, enable SSL to provide secure communication of events. See ActiveMQ - HTTP and HTTPS Transports.

Edit this page

Suggest an edit on GitHub
This website uses cookies in order to offer you the most relevant information. Please accept cookies for optimal performance. This documentation is subject to the Alfresco documentation terms.