OK, that works.  I thought that I had gotten an exception when I tried that 
earlier.  Oh, now I remember, what I tried at first was (this is only one of 
many variations of the object name string containing wild cards):

ObjectName name = new ObjectName("jboss.management.local:EJBModule=*,*");
  | getServer().queryMBeans(name, qe);

This gave me the exception:

Exception in thread "main" javax.management.MalformedObjectNameException: jboss.
  | management.local:EJBModule=*,* is not a valid ObjectName. The value * 
cannot con
  | tain * use quote backslash * quote or ObjectName.quote(String)

This lead me to attempt to figure out how query expressions worked,  which lead 
to the code I originally posted.  My end goal is to come up with a query that 
will give me all mbeans that have a particular attribute, regardless of the 
value of the attribute.

By the way, I am close to figuring out why the query isn't working.  I'll post 
my conclusions when I am done.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942310#3942310

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942310


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to