Damien B created AMQ-5025:
-----------------------------

             Summary: 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)

Reply via email to