public boolean removeNotificationListener ( String mbeanName , NotificationListener listener ) throws Exception { if ( isConnected ( ) ) { ObjectName objectName = new ObjectName ( mbeanName ) ; mbsc . removeNotificationListener ( objectName , listener , null , null ) ; jmxc . removeConnectionNotificationListener ( listener ) ; return true ; } else { return false ; } }
Removes listener as notification and connection notification listener .