ActiveMQ Getting Started
ActiveMQ is the most popular and powerful open source messaging and Integration Patterns server.Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes with easy to use Enterprise Integration Patterns and many advanced features while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License
If you have installed Websoft9 ActiveMQ, the following steps is for your quick start
Preparation
- Get the Internet IP on your Cloud Platform
- Check your Inbound of Security Group Rule of Cloud Console to ensure the TCP:8161 is allowed
- Get default username and password of ActiveMQ
- Complete Five steps for Domain if you want to use Domain for ActiveMQ.
ActiveMQ Installation
Steps for you
-
Using local Chrome or Firefox to visit the URL http://DNS:8161 or http://Internet IP:8161, you will enter installation wizard of ActiveMQ(Don't know password?)
-
Click link [Manage ActiveMQ broker] to login ActiveMQ console
-
You can reset the password by modify the file /opt/apache-activemq/conf/jetty-realm.properties
More useful ActiveMQ guide, please refer to Using Apache ActiveMQ
Having trouble?
Below is for you to solve problem, and you can contact Websoft9 Support or refer to Troubleshoot + FAQ to get more.
ActiveMQ QuickStart
ActiveMQ Setup
Reset Password
You can reset or set the password by modity the file: /opt/apache-activemq/conf/jetty-realm.properties, then systemctl restart activemq
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/apache-activemq/examples/conf/activemq-demo.xml file and change the
locations
property to reflect the location of the encrypted credentials file, located at /opt/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:
systemctl stop activemq
- Run the example:
cd /opt/activemq
sudo ./bin/activemq console xbean:/opt/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://Internet IP:8161/demo, If needed, use the credentials obtained from the server dashboard to log in.
Configuration
Refer to the official docs: http://activemq.apache.org/configuration.html
Reference sheet
The below items and General parameter sheet is maybe useful for you manage ActiveMQ Run docker ps command, view all Containers when ActiveMQ is running:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
abeaf50ef7ec alfresco/alfresco-activemq:5.18.2-jre17-rockylinux8 "/bin/sh -c './init.…" 37 minutes ago Up 37 minutes 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 0.0.0.0:8161->8161/tcp, :::8161->8161/tcp, 0.0.0.0:61613->61613/tcp, :::61613->61613/tcp, 0.0.0.0:61616->61616/tcp, :::61616->61616/tcp activemq
Path
ActiveMQ installation directory: /data/apps/activemq
ActiveMQ configuration directory: /data/apps/activemq/data
Port
Port | Use | Necessity |
---|---|---|
8161 | HTTP requests for ActiveMQ Console | Optional |
5672 | amqp | Optional |
Version
sudo docker exec -it activemq find /opt/activemq -name activemq-all* | cut -d- -f3
Service
sudo docker start | stop | restart activemq
CLI
/opt/apache-activemq -h