googleactivemq

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/credentials-enc.properties:

    <property name="locations">
          <value>file:${activemq.conf}/credentials-enc.properties</value>
    </property>
    
  • If the ActiveMQ server is currently running, stop it:

    $ sudo /opt/bitnami/ctlscript.sh 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://DOMAIN:8161/demo. If needed, use the credentials obtained from the server dashboard to log in.

Last modification September 4, 2018