// add a remote notification listener for the remote mbean server
con.server.addNotificationListener(JMXUtil.getMBeanServerObjectName(), this, new LocalMBeanEventFilter(), k);
// add a remote notification listener for the remote connector mbean
CompositeEventFilter filter = new CompositeEventFilter(new NotificationFilter[]{new ClassEventFilter(AttributeChangeNotification.class), new LocalMBeanEventFilter()});
con.server.addNotificationListener(con.localName, this, filter, null);
// query all beans on the remote MBeanServer, excluding any mbeans under the JMImplementation domain (the MBeanServerDelegate)
// and that aren't private
Set beans = JMXUtil.queryLocalMBeans(con.server, new ObjectName("*:*"), query);