![](https://images.squarespace-cdn.com/content/v1/64d66becae66012cad5309a9/06a6676a-306f-4060-947d-2a099125713b/HYTE-Website-Explore-12.jpg)
Reference
How to Upgrade ActiveMQ
ActiveMQ Upgrade Steps
The advice and commands detailed on this website should be used only as a reference in supporting your own messaging environment. You are solely responsible for determining the appropriateness of using and distributing any HYTE information and you assume all risks associated with its use, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of operation. This information is not intended to be used in any situation where a failure could cause risk of injury or damage to property. This is not intended as legal advice and no warranty is provided with this information. Use at your own risk.
Preparation Steps
Download updated version of HYTE MQ or Apache ActiveMQ
Download updated verison of Java JDK
Stage files on the server
Upgrade
1) Stop the ActiveMQ server process
Consult with system administrators for proper way to shutdown.
Most Linux servers use systemd (or other service startup manager)
Windows servers usually use Computer Management -> Services and Applications -> Services
Default:
$ cd /opt/activemq/apache-activemq-5.18.2 (replace with correct installation folder)
$ ./bin/activemq stop
2) Extract the new installation
Extract new Java release
$ cd /opt/java $ tar xzvf java-jdk-11.0.20.tar.gz
Extract new ActiveMQ release
$ cd /opt/activemq $ tar zxvf apache-activemq-5.18.3-unix.tar.gz
Note: Use unzip on Windows
3) Copy any config files from the old conf folder
Copy ActiveMQ broker configuration file
$ cp /opt/activemq/apache-activemq-5.18.2/conf/activemq.xml /opt/activmeq/apache-activemq-5.18.3/conf
Copy users, groups and passwords
$ cp /opt/activemq/apache-activemq-5.18.2/conf/users.properties /opt/activmeq/apache-activemq-5.18.3/conf
Optionally, SSL keystore
$ cp /opt/activemq/apache-activemq-5.18.2/conf/keystore.ks /opt/activmeq/apache-activemq-5.18.3/conf
Copy any other custom configuration files over
4. Update bin/env file to point to new Java JDK as JAVA_HOME variable
5. Copy kahadb folder over to recover any messages
$ cp -a /opt/activemq/apache-activemq-5.18.2/data/amq /opt/activemq/apache-activemq-5.18.3/data
6. Start ActiveMQ
Consult with system administrators for proper way to startup.
Most Linux servers use systemd (or other service startup manager)
Windows servers usually use Computer Management -> Services and Applications -> Services
Default:
$ cd /opt/activemq/apache-activemq-5.18.3
$ ./bin/activemq start
7. Log into HYTE Console to confirm the new ActiveMQ server is running and is able to send and browse messages using a test queue
References
General References:
Contact HYTE
For technical assistance, please open a support ticket in the HYTE Portal
You are solely responsible for determining the appropriateness of using and distributing any publicly available HYTE information and you assume all risks associated with its use, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and the unavailability or interruption of operation. This information is not intended to be used in any situation where a failure could cause risk of injury or damage to property. This is not intended as legal advice and no warranty is provided with this information. Use at your own risk.
Questions?
Sometimes a 15-minute conversation with a Messaging Platform Architect can help make it all clear. Schedule a meeting for a quick discussion and/or online demo of our platform and tools.
![](https://images.squarespace-cdn.com/content/v1/64d66becae66012cad5309a9/ad820041-6b2b-4f46-9076-7c7a9b1a4730/HYTE-Website-Explore-11.jpg)