- 1 year ago
Adding user to ActiveMQ Artemis fails on Windows
To add a user to ActiveMQ Artemis on Windows, you can use the artemis
command-line tool provided by the Artemis broker. Here's the general procedure to add a user:
Open a command prompt: Launch the command prompt with administrative privileges. Right-click on "Command Prompt" and choose "Run as administrator" from the context menu.
Navigate to the Artemis bin directory: Change the directory to the location where the Artemis broker is installed. Typically, the
artemis
command-line tool can be found in thebin
directory within the Artemis installation directory.Example:
bashcd C:\path\to\artemis\bin
Add the user: Run the
artemis
command with thecreate
option to add a new user.Example:
cssartemis create user --user <username> --password <password> --role <role>
Replace
<username>
with the desired username,<password>
with the user's password, and<role>
with the desired role for the user.For example, to create a user with the username "john" and password "secret" and assign the "admin" role, use the following command:
cssartemis create user --user john --password secret --role admin
Restart the Artemis broker: After adding the user, restart the Artemis broker to apply the changes. You can stop and start the Artemis broker using the appropriate commands or service management tools for your specific setup.
Note: The exact commands and procedures may vary depending on your Artemis installation and configuration. Make sure to refer to the Artemis documentation and consult the relevant resources for your specific Artemis version and platform.
If you encounter any specific error messages or issues during the user creation process, please provide additional details so that I can assist you further.