[ mx4j-Bugs-1335777 ] Could not re-add listener when MBean is unregistered
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1335777, was opened at 2005-10-23 23:13 Message generated for change (Comment added) made by simonebordet You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1335777&group_id=47745 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: JSR 160 Implementation Group: Release 3.0.1 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Simone Bordet (simonebordet) Assigned to: Simone Bordet (simonebordet) Summary: Could not re-add listener when MBean is unregistered Initial Comment: As reported by Jens Rottgardt, it is not possible to re-add a NotificationListener to an MBeanServerConnection obtained from a JMXConnector. His particular case involved RMI, but that is true for HTTP based connectors as well. The problem lies in the fact that exceptions are not handled correctly in the implementations of the MBeanServerConnection interface (e.g. HTTPConnectionMBeanServerConnection): when connection.removeNotificationListener() throws an exception, the listeners are not removed from the notification handler. ---------------------------------------------------------------------- >Comment By: Simone Bordet (simonebordet) Date: 2005-10-23 23:16 Message: Logged In: YES user_id=1170988 Fixed as suggested by Jens: catching ListenerNotFoundException and InstanceNotFoundException, and removing the listeners from the notification handler ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1335777&group_id=47745 ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information