activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r475901 - /incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java
Date Thu, 16 Nov 2006 20:01:01 GMT
Author: aco
Date: Thu Nov 16 12:01:00 2006
New Revision: 475901

URL: http://svn.apache.org/viewvc?view=rev&rev=475901
Log:
https://issues.apache.org/activemq/browse/AMQ-1050
Fix bug in query when using the format -QTopic=*, -QQueue=*, etc.

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

Modified: incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java?view=diff&rev=475901&r1=475900&r2=475901
==============================================================================
--- incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java
(original)
+++ incubator/activemq/trunk/activemq-console/src/main/java/org/apache/activemq/console/command/QueryCommand.java
Thu Nov 16 12:01:00 2006
@@ -94,7 +94,10 @@
                 return;
             }
             String queryStr = JmxMBeansUtil.createQueryString(predefQuery, value);
-            queryAddObjects.add(queryStr);
+            StringTokenizer queryTokens = new StringTokenizer(queryStr, COMMAND_OPTION_DELIMETER);
+            while (queryTokens.hasMoreTokens()) {
+                queryAddObjects.add(queryTokens.nextToken());
+            }
         }
 
         // If token is a substractive predefined query define option
@@ -114,7 +117,10 @@
                 return;
             }
             String queryStr = JmxMBeansUtil.createQueryString(predefQuery, value);
-            querySubObjects.add(queryStr);
+            StringTokenizer queryTokens = new StringTokenizer(queryStr, COMMAND_OPTION_DELIMETER);
+            while (queryTokens.hasMoreTokens()) {
+                querySubObjects.add(queryTokens.nextToken());
+            }
         }
 
         // If token is an additive object name query option



Mime
View raw message