tags:

views:

186

answers:

1

How can I get the J2EEServer MBean using JMX query ?

I've tried something like :

mbsc.queryMBeans(new ObjectName("*:j2eeType=J2EEServer"), null)

but no success ?

Have i done something wrong?

Thank you!

+1  A: 

This will do the magic:

   mbeanServerConnection.queryNames(new ObjectName("*:j2eeType=J2EEServer,*"),null )
Flueras Bogdan