activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien B (JIRA)" <>
Subject [jira] [Created] (AMQ-5025) activemq-admin help is misleading
Date Wed, 05 Feb 2014 11:06:09 GMT
Damien B created AMQ-5025:

             Summary: activemq-admin help is misleading
                 Key: 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>

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

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

View raw message