[jboss-remoting-commits] JBoss Remoting SVN: r3656 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport/rmi.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Mon Mar 17 03:36:49 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-03-17 03:36:49 -0400 (Mon, 17 Mar 2008)
New Revision: 3656

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/transport/rmi/RMIClientInvoker.java
Log:
JBREM-933: Added handleDisconnect().

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/rmi/RMIClientInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/rmi/RMIClientInvoker.java	2008-03-17 07:36:12 UTC (rev 3655)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/rmi/RMIClientInvoker.java	2008-03-17 07:36:49 UTC (rev 3656)
@@ -210,6 +210,7 @@
    protected void handleConnect()
    throws ConnectionFailedException
    {  
+      storeLocalConfig(configuration);
       int registryPort = getRegistryPort(locator);
       Home home = null;
       Exception savedException = null;
@@ -225,7 +226,6 @@
             String host = home.host;
             int port = home.port;
             locator.setHomeInUse(home);
-            storeLocalConfig(configuration);
             log.debug(this + " looking up registry: " + host + "," + port);
             Registry registry = LocateRegistry.getRegistry(host, registryPort);
             log.debug(this + " trying to connect to: " + home);
@@ -293,6 +293,7 @@
     */
    protected void handleDisconnect()
    {
+      RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);
    }
 
    protected String getDefaultDataType()




More information about the jboss-remoting-commits mailing list