[
https://issues.apache.org/jira/browse/AMQ-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090342#comment-13090342
]
Andrei D commented on AMQ-3371:
-------------------------------
I did. It doesn't work. I had to also escape the (), as noted by Charles.
So this worked:
{noformat}
bin/activemq console
'broker:\(tcp://localhost:61616,network:static:tcp://remotehost:61616\)?persistent=false&useJmx=true'
{noformat}
Note that this issue is not limited to 5.5.0, it also happens in 5.4.2
The format you suggested generates this output:
{noformat}
# bin/activemq console
'broker:(tcp://localhost:61616,network:static:tcp://remotehost:61616)?persistent=false&useJmx=true'
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq
/root/.activemqrc)
INFO: Invoke the following command to create a configuration file
bin/activemq setup [ /etc/default/activemq | /root/.activemqrc ]
INFO: Using java '/usr/java/default/bin/java'
INFO: Starting in foreground, this is just for debugging purposes (stop process
by pressing CTRL+C)
;: -c: line 0: syntax error near unexpected token `('
;: -c: line 0: `/usr/java/default/bin/java -Xms256M -Xmx256M
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Djava.util.logging.config.file=logging.properties
-Dcom.sun.management.jmxremote
-Dactivemq.classpath="/opt/apache-activemq-5.5.0/conf;"
-Dactivemq.home="/opt/apache-activemq-5.5.0"
-Dactivemq.base="/opt/apache-activemq-5.5.0" -jar
"/opt/apache-activemq-5.5.0/bin/run.jar" start
broker:(tcp://localhost:61616,network:static:tcp://remotehost:61616)?persistent=false&useJmx=true'
{noformat}
> Not possible to use brokerUri option when using ./activemq console command
> line
> -------------------------------------------------------------------------------
>
> Key: AMQ-3371
> URL: https://issues.apache.org/jira/browse/AMQ-3371
> Project: ActiveMQ
> Issue Type: Bug
> Reporter: Charles Moulliard
>
> The following syntax does not work with AMQ 5.5 ?
> {code}
> ./activemq console
> broker:(tcp://localhost:61616,network:static:tcp://remotehost:61616)?persistent=false&useJmx=true
> -bash: syntax error near unexpected token `('
> {code}
> I have used successfully this one :
> {code}
> ./activemq console broker:'\(tcp://localhost61616\)'/brokerName'?useJmx=true
> {code}
> Can someone check and confirm that this is the right syntax ?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira