Description
See http://activemq.2283324.n4.nabble.com/Setup-writes-wrong-default-JMX-port-td3425002.html for the question and request for JIRA issue.
Change the line:
ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=11099 "
to
ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=1099 "
Then remove the "--jmxurl
service:jmx:rmi:///jndi/rmi://127.0.0.1:11099/jmxrmi " from the ACTIVEMQ_SUNJMX_CONTROL to make restarts and queries work without erroring.