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
---