[jboss-cvs] JBossAS SVN: r64717 - trunk/cluster/src/main/org/jboss/ha/framework/interfaces.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Aug 20 15:36:38 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-08-20 15:36:38 -0400 (Mon, 20 Aug 2007)
New Revision: 64717
Modified:
trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java
Log:
[JBAS-4615] Pass on the cause of the service unavailable exception
Modified: trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java 2007-08-20 19:30:23 UTC (rev 64716)
+++ trunk/cluster/src/main/org/jboss/ha/framework/interfaces/HARMIClient.java 2007-08-20 19:36:38 UTC (rev 64717)
@@ -159,9 +159,9 @@
{
boolean trace = log.isTraceEnabled();
HARMIServer target = (HARMIServer)getRemoteTarget();
+ Exception lastException = null;
while (target != null)
- {
- Exception lastException = null;
+ {
try
{
if( trace )
@@ -211,7 +211,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