[
https://issues.apache.org/jira/browse/ARTEMIS-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16209341#comment-16209341
]
ASF GitHub Bot commented on ARTEMIS-1463:
-----------------------------------------
Github user andytaylor commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1593#discussion_r145416142
--- Diff:
examples/features/standard/message-counters/src/main/java/org/apache/activemq/artemis/jms/example/MessageCounterExample.java
---
@@ -75,9 +75,11 @@ public static void main(final String[] args) throws
Exception {
// Step 7. Use JMX to retrieve the message counters using the
JMSQueueControl
ObjectName on =
ObjectNameBuilder.DEFAULT.getQueueObjectName(SimpleString.toSimpleString(queue.getQueueName()),
SimpleString.toSimpleString(queue.getQueueName()), RoutingType.ANYCAST);
+ //we dont actually need credentials as the guest login i sused
but this is how its done
HashMap env = new HashMap();
String[] creds = {"guest", "guest"};
env.put(JMXConnector.CREDENTIALS, creds);
+ env.put(JMXConnector.CREDENTIALS, creds);
--- End diff --
fixed
> Implement rbac of management objects
> ------------------------------------
>
> Key: ARTEMIS-1463
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1463
> Project: ActiveMQ Artemis
> Issue Type: New Feature
> Reporter: Andy Taylor
> Assignee: Andy Taylor
> Fix For: 2.4.0
>
>
> Add role based authentication for the JMX objects by guarding calls to the
> mbean server
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)