[
https://issues.apache.org/jira/browse/AMQ-5025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893957#comment-13893957
]
Damien B commented on AMQ-5025:
-------------------------------
Related to https://issues.apache.org/jira/browse/AMQ-3082 , it's in fact a bug.
The fact that it's working with the non-JMX commands is because
org.apache.activemq.console.command.AbstractCommand is cheating the java
executable by parsing itself the -D JVM properties whereas
org.apache.activemq.console.command.AbstractJmxCommand does not.
> activemq-admin help is misleading
> ---------------------------------
>
> Key: AMQ-5025
> URL: https://issues.apache.org/jira/browse/AMQ-5025
> Project: ActiveMQ
> Issue Type: Improvement
> Components: Documentation
> Affects Versions: 5.8.0
> Reporter: Damien B
>
> When run without arguments, activemq-admin displays this:
> [...]
> JMX system property options:
> -Dactivemq.jmx.url=<jmx service uri> (default is:
> 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
> -Dactivemq.jmx.user=<user name>
> -Dactivemq.jmx.password=<password>
> Which leads to think that you can pass somehow those arguments on the command
> line.
> But either
> ./activemq-admin bstat
> -Dactivemq.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:8888/jmxrmi
> or
> ./activemq-admin
> -Dactivemq.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:8888/jmxrmi bstat
> are accepted by the script, and lead to the seame result:
> Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
> because activemq-admin does not forward those arguments to Main.class:
> JVM args: -Dactivemq.classpath=/master/conf; -Dactivemq.home=/master
> -Dactivemq.base=/master -Dactivemq.conf=/master/conf
> -Dactivemq.data=/master/data -Djava.io.tmpdir=/master/tmp
> Those arguments should either be forwarded, or there should be a prominent
> warning that the help doesn't apply to the activemq-admin script.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)