You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Aleksandar Ivanisevic <al...@ivanisevic.de> on 2009/05/20 09:31:38 UTC

briwsing a protected queue from activemq-admin

how in activemq 5.2.0 can I specify user and password to
activemq-admin browse?

Tried with -Dactivemq.{username,password} but it doesn't work


java -Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Dcom.sun.management.jmxremote
'-Dactivemq.classpath=/opt/activemq/conf;'
-Dactivemq.home=/opt/activemq -Dactivemq.base=/opt/activemq -jar
/opt/activemq/bin/run.jar -Dactivemq.username=system
-Dactivemq.password=manager browse --amqurl tcp://localhost:61616
queuename

ACTIVEMQ_HOME: /opt/activemq
ACTIVEMQ_BASE: /opt/activemq
ERROR: java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.JMSException: User name or password is invalid.
java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.JMSException: User name or password is invalid.
	at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:130)
	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)