[Jboss-cvs] JBossAS SVN: r56934 - branches/MC_VDF_WORK/jmx/src/main/org/jboss/mx/server

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 18 08:59:57 EDT 2006


Author: adrian at jboss.org
Date: 2006-09-18 08:59:55 -0400 (Mon, 18 Sep 2006)
New Revision: 56934

Modified:
   branches/MC_VDF_WORK/jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java
Log:
Show the MBean name when it doesn't implement NotificationBroadcaster,
like the other methods.

Modified: branches/MC_VDF_WORK/jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java
===================================================================
--- branches/MC_VDF_WORK/jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java	2006-09-18 12:55:25 UTC (rev 56933)
+++ branches/MC_VDF_WORK/jmx/src/main/org/jboss/mx/server/MBeanServerImpl.java	2006-09-18 12:59:55 UTC (rev 56934)
@@ -745,7 +745,7 @@
    {
       MBeanEntry entry = registry.get(name);
       if (NotificationBroadcaster.class.isInstance(entry.getResourceInstance()) == false)
-         throw new RuntimeOperationsException(new IllegalArgumentException("The MBean named exists but does not implement the NotificationBroadcaster interface."));
+         throw new RuntimeOperationsException(new IllegalArgumentException("The MBean " + name + " exists but does not implement the NotificationBroadcaster interface."));
 
       if (listener == null)
          throw new RuntimeOperationsException(new IllegalArgumentException("Cannot add null listener"));




More information about the jboss-cvs-commits mailing list