-
Enhancement
-
Resolution: Fixed
-
P3
-
7
-
b30
-
generic
-
generic
-
Verified
The recently-added query language for the JMX API makes it possible to use an SQL-like language to write MBean queries, as an alternative to constructing them by chaining method calls. The proposed language sticks closely to SQL, even going so far as to use SQL's wildcard characters in LIKE clauses. So for example to specify MBeans that have an attribute Name beginning with "T" you would write "Name LIKE 'T%'". Using % and _ as wildcards (meaning respectively any number of characters and exactly one character) is consistent with SQL, and also with JMS and JPA which both have SQL-like query languages too. However it is inconsistent with wildcards elsewhere in the JMX API, which use * and ?. It's more likely that someone using the JMX API will already be familiar with the */? convention than the %/_ one so we should prefer that. This is also more consistent with the syntax for ObjectName matching in the language, where ObjectNames in a domain beginning with "T" are specified as "LIKE 'T*:*'".
- relates to
-
JDK-6602310 Extensions to Query API for JMX 2.0
- Closed