From 170a7b5bf5388c5f05efdb9dc8ecfd51003ccb2a Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Tue, 26 Jul 2011 17:48:13 +0000 Subject: [PATCH] apply additional patch for: https://issues.apache.org/jira/browse/AMQ-3411 adding additional help info. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1151185 13f79535-47bb-0310-9956-ffa450edef68 --- .../console/command/AbstractAmqCommand.java | 1 - .../activemq/console/command/AmqBrowseCommand.java | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java b/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java index b9dec8f3e7..42d055204e 100644 --- a/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java +++ b/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractAmqCommand.java @@ -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; diff --git a/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java b/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java index ba095f2b95..6d9ad72f72 100644 --- a/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java +++ b/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java @@ -45,6 +45,11 @@ public class AmqBrowseCommand extends AbstractAmqCommand { " --amqurl Set the broker URL to connect to.", " --msgsel Add to the search list messages matched by the query similar to", " the messages selector format.", + " --factory Load className as the javax.jms.ConnectionFactory to use for creating connections.", + " --passwordFactory Load className as the org.apache.activemq.console.command.PasswordFactory", + " for retrieving the password from a keystore.", + " --user Username to use for JMS connections.", + " --password Password to use for JMS connections.", " -V Predefined view that allows you to view the message header, custom", " message header, or the message body.", " --view ,,... Select the specific attribute of the message to view.", @@ -67,6 +72,15 @@ public class AmqBrowseCommand extends AbstractAmqCommand { " 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 queryAddObjects = new ArrayList(10);