I've successfully setup remote JMX monitoring with authentication and using a
port different from the default port. There will be times when I can only
use command line tools (list, query, etc) to manage the broker. However, the
command line tools won't work with authentication (see exception below). The
--jmxurl works only when there is no authentication.  Is there a way to pass
parameters or mod the command line scripts to add the userid and password?

Thanks,
Jason

ERROR: java.lang.RuntimeException: Failed to execute list task. Reason:
java.lang.SecurityException: Authentication failed! Credentials required
java.lang.RuntimeException: Failed to execute list task. Reason:
java.lang.SecurityException: Authentication failed! Credentials required
        at
org.apache.activemq.console.command.ListCommand.runTask(ListCommand.java:40)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50)
        at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:69)
        at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:50)
        at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:202)
        at org.apache.activemq.console.Main.main(Main.java:91)

-- 
View this message in context: 
http://www.nabble.com/jmx-authentication-and-command-line-tools-tp14851422s2354p14851422.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to