[jboss-cvs] JBossAS SVN: r64663 - branches/JBoss_4_0_5_GA_JBAS-4574/cluster/src/main/org/jboss/ha/framework/interfaces.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 17 15:01:47 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-08-17 15:01:47 -0400 (Fri, 17 Aug 2007)
New Revision: 64663

Modified:
   branches/JBoss_4_0_5_GA_JBAS-4574/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java
Log:
[JBAS-4574] Pass the underlying exception

Modified: branches/JBoss_4_0_5_GA_JBAS-4574/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java
===================================================================
--- branches/JBoss_4_0_5_GA_JBAS-4574/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java	2007-08-17 17:55:23 UTC (rev 64662)
+++ branches/JBoss_4_0_5_GA_JBAS-4574/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java	2007-08-17 19:01:47 UTC (rev 64663)
@@ -158,9 +158,9 @@
    {
       boolean trace = log.isTraceEnabled();
       HARMIServer target = (HARMIServer)getRemoteTarget();
+      Exception lastException = null;
       while (target != null)
-      {
-         Exception lastException = null;
+      {         
          try
          {
             if( trace )
@@ -210,7 +210,7 @@
          target = (HARMIServer)getRemoteTarget();
       }
       // if we get here this means list was exhausted
-      throw new java.rmi.RemoteException("Service unavailable.");
+      throw new java.rmi.RemoteException("Service unavailable.", lastException);
 
    }
 




More information about the jboss-cvs-commits mailing list