activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1151185 - in /activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command: AbstractAmqCommand.java AmqBrowseCommand.java
Date Tue, 26 Jul 2011 17:48:14 GMT
Author: tabish
Date: Tue Jul 26 17:48:13 2011
New Revision: 1151185

URL: http://svn.apache.org/viewvc?rev=1151185&view=rev
Log:
apply additional patch for: https://issues.apache.org/jira/browse/AMQ-3411 adding additional
help info.

Modified:
    activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java
    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/AbstractAmqCommand.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java?rev=1151185&r1=1151184&r2=1151185&view=diff
==============================================================================
--- activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java
(original)
+++ activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java
Tue Jul 26 17:48:13 2011
@@ -16,7 +16,6 @@
  */
 package org.apache.activemq.console.command;
 
-import java.lang.reflect.InvocationTargetException;
 import java.net.URI;
 import java.net.URISyntaxException;
 import java.util.ArrayList;

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=1151185&r1=1151184&r2=1151185&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
Tue Jul 26 17:48:13 2011
@@ -45,6 +45,11 @@ public class AmqBrowseCommand extends Ab
         "    --amqurl <url>                Set the broker URL to connect to.",
         "    --msgsel <msgsel1,msglsel2>   Add to the search list messages matched
by the query similar to",
         "                                  the messages selector format.",
+        "    --factory <className>         Load className as the javax.jms.ConnectionFactory
to use for creating connections.",
+        "    --passwordFactory <className> Load className as the org.apache.activemq.console.command.PasswordFactory",
+        "                                  for retrieving the password from a keystore.",
+        "    --user <username>             Username to use for JMS connections.",
+        "    --password <password>         Password to use for JMS connections.",
         "    -V<header|custom|body>        Predefined view that allows you to view
the message header, custom",
         "                                  message header, or the message body.",
         "    --view <attr1>,<attr2>,...    Select the specific attribute of the
message to view.",
@@ -67,6 +72,15 @@ 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",
+        "        - 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",
+        "        - 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.",
+        "",
     };
 
     private final List<String> queryAddObjects = new ArrayList<String>(10);



Mime
View raw message