activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1244993 - /activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java
Date Thu, 16 Feb 2012 14:22:34 GMT
Author: tabish
Date: Thu Feb 16 14:22:33 2012
New Revision: 1244993

URL: http://svn.apache.org/viewvc?rev=1244993&view=rev
Log:
apply patch for: https://issues.apache.org/jira/browse/AMQ-3722

Modified:
    activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java

Modified: activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java?rev=1244993&r1=1244992&r2=1244993&view=diff
==============================================================================
--- activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java
(original)
+++ activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java
Thu Feb 16 14:22:33 2012
@@ -72,11 +72,11 @@ public class AmqBrowseCommand extends Ab
         "          wildcard *:10, and has a JMSPriority field > 5 in the queue FOO.BAR",
         "        * To use wildcard queries, the field must be a string and the query enclosed
in ''",
         "",
-        "    Main browse --amqurl tcp://localhost:61616 --user someUser --pass somePass FOO.BAR",
+        "    Main browse --amqurl tcp://localhost:61616 --user someUser --password somePass
FOO.BAR",
         "        - Print the message header, custom message header, and message body of all
messages in the",
         "          queue FOO.BAR, using someUser as the user name, and somePass as the password",
         "",
-        "    Main browse --amqurl tcp://localhost:61616 --user someUser --pass somePass --factory
org.apache.activemq.ActiveMQConnectionFactory --passwordFactory org.apache.activemq.AMQPasswordFactory
FOO.BAR",
+        "    Main browse --amqurl tcp://localhost:61616 --user someUser --password somePass
--factory org.apache.activemq.ActiveMQConnectionFactory --passwordFactory org.apache.activemq.AMQPasswordFactory
FOO.BAR",
         "        - Print the message header, custom message header, and message body of all
messages in the",
         "          queue FOO.BAR, using someUser as the user name, org.apache.activemq.AMQFactorySubClass
to create JMS connections,",
         "          and org.apache.activemq.console.command.DefaultPasswordFactory to turn
somePass into the password to be used.",
@@ -91,7 +91,7 @@ public class AmqBrowseCommand extends Ab
     /**
      * Execute the browse command, which allows you to browse the messages in a
      * given JMS destination
-     * 
+     *
      * @param tokens - command arguments
      * @throws Exception
      */
@@ -148,7 +148,7 @@ public class AmqBrowseCommand extends Ab
 
     /**
      * Handle the --msgsel, --xmsgsel, --view, -V options.
-     * 
+     *
      * @param token - option token to handle
      * @param tokens - succeeding command arguments
      * @throws Exception
@@ -172,8 +172,7 @@ public class AmqBrowseCommand extends Ab
         } else if (token.startsWith("--xmsgsel")) {
             // If token is a substractive message selector option
 
-            // If no message selector is specified, or next token is a new
-            // option
+            // If no message selector is specified, or next token is a new option
             if (tokens.isEmpty() || ((String)tokens.get(0)).startsWith("-")) {
                 context.printException(new IllegalArgumentException("Message selector not
specified"));
                 return;



Mime
View raw message