Fix bug in query when using the format -QTopic=*, -QQueue=*, etc.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@475901 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-11-16 20:01:00 +00:00
parent a58d36b9b3
commit 2df306cc7a
1 changed files with 8 additions and 2 deletions

View File

@ -94,7 +94,10 @@ public class QueryCommand extends AbstractJmxCommand {
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 @@ public class QueryCommand extends AbstractJmxCommand {
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