mirror of https://github.com/apache/activemq.git
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:
parent
a58d36b9b3
commit
2df306cc7a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue