// connector server is bound to
MBeanServerConnection connection = connector.getMBeanServerConnection();
LOGGER.info(connection.getMBeanCount().toString());
Set set = connection.queryNames(new ObjectName(connection.getDefaultDomain() + ":*"), null);
for (Iterator iter = set.iterator(); iter.hasNext();) {
ObjectName name = (ObjectName) iter.next();
LOGGER.info(name.toString());
MBeanInfo info = connection.getMBeanInfo(name);
MBeanAttributeInfo[] mia = info.getAttributes();