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

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Apr 27 21:56:16 EDT 2011


Author: ron.sigal at jboss.com
Date: 2011-04-27 21:56:16 -0400 (Wed, 27 Apr 2011)
New Revision: 6343

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java
Log:
JBREM-1285: addListener() checks for LocalClientInvoker before deriving the transport from the InvokerLocator.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java	2011-04-28 01:55:33 UTC (rev 6342)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java	2011-04-28 01:56:16 UTC (rev 6343)
@@ -1200,7 +1200,14 @@
                }
                if (transport == null)
                {
-                  transport = invoker.getLocator().getProtocol();
+                  if (invoker instanceof LocalClientInvoker)
+                  {
+                     transport = "local";
+                  }
+                  else
+                  {
+                     transport = invoker.getLocator().getProtocol();
+                  }
                   metadata.put(CALLBACK_SERVER_PROTOCOL, transport);
                }
                if (host == null)



More information about the jboss-remoting-commits mailing list