Author: ron.sigal(a)jboss.com
Date: 2011-04-27 21:50:54 -0400 (Wed, 27 Apr 2011)
New Revision: 6340
Modified:
remoting2/branches/2.2/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.2/src/main/org/jboss/remoting/Client.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java 2011-04-27 14:52:43 UTC
(rev 6339)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java 2011-04-28 01:50:54 UTC
(rev 6340)
@@ -1135,7 +1135,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)
Show replies by date