activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei D (JIRA)" <>
Subject [jira] [Commented] (AMQ-3371) Not possible to use brokerUri option when using ./activemq console command line
Date Wed, 24 Aug 2011 17:02:29 GMT


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:
bin/activemq console 'broker:\(tcp://localhost:61616,network:static:tcp://remotehost:61616\)?persistent=false&useJmx=true'

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:
# 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
;: -c: line 0: syntax error near unexpected token `('
;: -c: line 0: `/usr/java/default/bin/java -Xms256M -Xmx256M -Dorg.apache.activemq.UseDedicatedTaskRunner=true       
         -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'

> Not possible to use brokerUri option when using ./activemq console command line
> -------------------------------------------------------------------------------
>                 Key: AMQ-3371
>                 URL:
>             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:


View raw message