[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/bisocket ...
Ron Sigal
ron_sigal at yahoo.com
Wed Mar 14 02:13:21 EDT 2007
User: rsigal
Date: 07/03/14 02:13:21
Modified: src/main/org/jboss/remoting/transport/bisocket
BisocketClientInvoker.java
Log:
JBREM-725: getSecondaryLocator() throws saved exception.
Revision Changes Path
1.11 +5 -3 JBossRemoting/src/main/org/jboss/remoting/transport/bisocket/BisocketClientInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketClientInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/bisocket/BisocketClientInvoker.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- BisocketClientInvoker.java 14 Mar 2007 04:57:00 -0000 1.10
+++ BisocketClientInvoker.java 14 Mar 2007 06:13:21 -0000 1.11
@@ -417,6 +417,7 @@
InternalInvocation ii = new InternalInvocation(Bisocket.GET_SECONDARY_INVOKER_LOCATOR, null);
InvocationRequest r = new InvocationRequest(null, null, ii, null, null, null);
log.debug("getting secondary locator");
+ Exception savedException = null;
for (int i = 0; i < maxRetries; i++)
{
@@ -427,13 +428,14 @@
secondaryLocator = (InvokerLocator) o;
return secondaryLocator;
}
- catch (IOException e)
+ catch (Exception e)
{
- log.warn("unable to get secondary locator: trying again");
+ savedException = e;
+ log.info("unable to get secondary locator: trying again");
}
}
- throw new IOException("unable to get secondary locator");
+ throw savedException;
}
More information about the jboss-cvs-commits
mailing list