You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2011/06/20 12:07:47 UTC
[jira] [Created] (AMQ-3371) Not possible to use brokerUri option
when using ./activemq console command line
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
[jira] [Commented] (AMQ-3371) Not possible to use brokerUri option
when using ./activemq console command line
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090421#comment-13090421 ]
Timothy Bish commented on AMQ-3371:
-----------------------------------
I think the is just a fact of the parsing that the shell is doing and not an issue with the application itself.
> 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
[jira] [Commented] (AMQ-3371) Not possible to use brokerUri option
when using ./activemq console command line
Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051897#comment-13051897 ]
Norman Maurer commented on AMQ-3371:
------------------------------------
Could you try this:
./activemq console '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: 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
[jira] [Closed] (AMQ-3371) Not possible to use brokerUri option
when using ./activemq console command line
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQ-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish closed AMQ-3371.
-----------------------------
Resolution: Not A Problem
The correct syntax would be:
{noformat}
./activemq console "broker:\(tcp://localhost:61616,network:static:tcp://remotehost:61616\)?persistent=false&useJmx=true"
{noformat}
Quote the string and escape the parends.
> 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
[jira] [Commented] (AMQ-3371) Not possible to use brokerUri option
when using ./activemq console command line
Posted by "Andrei D (JIRA)" <ji...@apache.org>.
[ 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