Setup ActiveMQ Artemis on Windows
Quickly learn how to set up ActiveMQ Artemis on your Windows OS machine. ActiveMQ Artemis is an open-source project for asynchronous messaging systems.
Join the DZone community and get the full member experience.
Join For FreeOverview
ActiveMQ Artemis is an open-source "next generation" broker from Apache with the performance and feature-set to implement high-performance messaging systems. Artemis is the code-name used for the HornetQ code that was donated to the Apache Foundation.
Pre-requisites:
- Windows 7 or higher
- Java 7 or higher
Let us start Artemis setup on Windows machine.
Step 1: Download and Extract the Archive
In this tutorial, Artemis version 2.17.0 is used for setup. You can download Zip file for the same using the below link:
Once downloaded, extract it to some convenient folder location, e.g.: D:\apache-artemis-2.17.0
referred as ${ARTEMIS_HOME} in the tutorial.
Avoid having 'space' character in the folder name.
Step 2: Run the ActiveMQ Artemis
Open the command prompt and navigate to ${ARTEMIS_HOME}\bin
Create a Broker Instance using the command:
${ARTEMIS_HOME}\bin\artemis create mybroker
A broker instance is a directory containing all the configuration and runtime data, such as logs and data files.
The above step will ask you to setup user credentials (username / password) as well. After creation, keep it safe as the same will be used for console login.
Now, start your newly created Broker Instance using the command:
${ARTEMIS_HOME}\bin\mybroker\bin\artemis run
Verify your Broker Instance by opening the console in the browser: http://localhost:8161/console
You will see the below login page.
Put the user credentials created during broker instance setup and login. You should be able to see the below console:
That's It.
Now that the broker is running, you can optionally run some of the included examples to verify the broker is running properly.
Opinions expressed by DZone contributors are their own.
Comments