This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10350|Reply: 1

Activemq topic permission settings

[Copy link]
Posted on 2/7/2018 1:25:03 PM | | | |
In ActiveMQ, we use some of the actions that you can associate with user roles and individual queues or topics or topics and queue levels that you can attach to using wildcards.
Tools needed:

C# ActiveMQ client subscribes to source code
http://www.itsvse.com/thread-4470-1-1.html
(Source: Architect)

Under the conf directory of activemq, find the "activemq.xml" configuration file

read: permission to read

write: permission to send

admin: If the target doesn't exist, you can lazily create a destination. This gives you granular control over which new goals can be dynamically created in which part of the queue/topic hierarchy

I have two user groups: admins and apis, I just want to make the apis group only read subscriptions and not send any data to topics, admins group has any permissions, configured as follows:



We have two users: admin and itsvse, admin belongs to the admins group, and itsvse belongs to the apis group.

We tried to send a message to the test topic with itsvse as follows:

Security Error occurred on connection to: tcp://127.0.0.1:59800, User itsvse is not authorized to write to: topic://test




We send a message with the admin user, as follows:







Previous:Summary of common URLs for Ethereum
Next:What is the difference between USB-HDD and USB-HDD+?
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com