Author: ron.sigal(a)jboss.com
Date: 2009-09-12 12:23:59 -0400 (Sat, 12 Sep 2009)
New Revision: 5456
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
Log:
JBREM-1154: establishLease() extracts cause from exception thrown by
LeasePinger.addClient() and throws cause.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java 2009-09-12
16:21:04 UTC (rev 5455)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java 2009-09-12
16:23:59 UTC (rev 5456)
@@ -445,7 +445,14 @@
// lease and just need to update the lease pinger
if (leasePinger != null)
{
- leasePinger.addClient(clientSessionID, configuration, leasePeriod);
+ try
+ {
+ leasePinger.addClient(clientSessionID, configuration, leasePeriod);
+ }
+ catch (RuntimeException e)
+ {
+ throw e.getCause();
+ }
if (trace) log.trace(this + " added client with session ID " +
clientSessionID + " to " + leasePinger);
}
else