Run the ActiveMQ Web demos

ActiveMQ comes with a number of Web demos that illustrate how to use the ActiveMQ broker with REST and AJAX. The Web demos are not activated in the default configuration, so you must follow the steps below to get them running:

  • Edit the /opt/bitnami/activemq/examples/conf/activemq-demo.xml file and change the ‘locations’ property to reflect the location of the encrypted credentials file, located at /opt/bitnami/activemq/conf/

      <property name="locations">
  • If the ActiveMQ server is currently running, stop it:

      $ sudo /opt/bitnami/ stop activemq
  • Run the example:

      $ cd /opt/bitnami/activemq
      $ sudo ./bin/activemq console xbean:/opt/bitnami/activemq/examples/conf/activemq-demo.xml

    The ActiveMQ broker should now start.

  • Log in to the Web administration panel and view the demos by browsing to http://SERVER-IP:8161/demo. If needed, use the credentials obtained from the server dashboard to log in.

Last modification December 21, 2022