[jboss-cvs] JBossAS SVN: r76319 - trunk/cluster/src/main/org/jboss/ha/jmx.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 28 16:13:59 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-07-28 16:13:59 -0400 (Mon, 28 Jul 2008)
New Revision: 76319

Modified:
   trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java
Log:
Add some context to exception message

Modified: trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java	2008-07-28 20:08:34 UTC (rev 76318)
+++ trunk/cluster/src/main/org/jboss/ha/jmx/HAServiceMBeanSupport.java	2008-07-28 20:13:59 UTC (rev 76319)
@@ -479,7 +479,8 @@
          {
             // This shouldn't occur as the service name is now injected by the microcontainer.
             //  If injection fails, the service name should then be used.
-            throw new IllegalStateException("Cannot determine ServiceHAName; " +
+            throw new IllegalStateException("Cannot determine ServiceHAName for " + 
+                    getClass().getName() + "; " +
                     "either set it explicitly or register this object in JMX " +
                     "before calling create");
          }




More information about the jboss-cvs-commits mailing list