Copyright 2017 Arnaud Marchand / Vassilis Papaleonidas
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This Angular JS web site can be used to monitor remote ActiveMQ servers. It displays basically the same information as the old ActiveMQ console written in JSP but using more modern technologies. It does not have to be hosted on the same server as the Active MQ broker.
It uses the Jolokia API in order to retrieve the broker information and the stomp protocol (Using this stomp library:stomp-websocket) on a web socket to connect a client to the broker. It should work with a pristine ActiveMQ installation.
Simply deploy the AMQC folder in a running web site, and browse the index.html file from any recent web browser. A better way to do it is to copy this project directly in the ActiveMQ webapps folder and to access it via the following URL: http://BROKER_IP:8161/AMQC/index.html
It should work with the recent releases of Active MQ.
If the ActiveMQ is protected by a password. The CORS handshake will fail on recent browsers because the Jetty web server hosting the ActiveMQ API is not CORS compliant out of the box. You can bypass this by disabling the CORS test in the browser or by tuning Jetty configuration in order to allow it.
Active MQ 5.13
The Active MQ 5.13 version broke the compatibility with web sockets opened via Chrome, IE 11 or Safari. However, the internal stomp client still works correctly with Firefox. Fixed in version v0.77 of the console.
Live Version:http://www.pi2s.be/AMQC/ Courtesy of PI2S.
Internal Stomp Client
v0.79 Broker Statistics
- autologin (Used to bypass the login screen)
- urlprefix (If used with a reverse proxy such as nginx)
There is a docker (snuids/activemq-amqcmonitoring) image that includes ActiveMQ and AMQC. The image is based on the webcenter/activemq image (https://hub.docker.com/r/webcenter/activemq/).
More info here: https://hub.docker.com/r/snuids/activemq-amqcmonitoring/
docker run --name AMQC -p 8161:8161 -p 61616:61616 -p 61614:61614 -p 61613:61613 -t snuids/activemq-amqcmonitoring
5.15.2 ActiveMQ version available on github here: https://hub.docker.com/r/snuids/activemq-amqcmonitoring/
Login into the Docker Image on the mac
Get more examples and fun by following our blog here: [https://pi2s.wordpress.com/]