Author: ron.sigal(a)jboss.com
Date: 2008-07-31 19:20:48 -0400 (Thu, 31 Jul 2008)
New Revision: 4443
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/RemoteClientInvoker.java
Log:
JBREM-1015: Tries to get "socketFactoryClassName" from locator parameters when
creating SocketFactory.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/RemoteClientInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/RemoteClientInvoker.java 2008-07-31
21:52:03 UTC (rev 4442)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/RemoteClientInvoker.java 2008-07-31
23:20:48 UTC (rev 4443)
@@ -43,6 +43,15 @@
public RemoteClientInvoker(InvokerLocator locator, Map configuration)
{
super(locator, configuration);
+ Map parameters = locator.getParameters();
+ if (parameters != null)
+ {
+ String socketFactoryClassName = (String)
locator.parameters.get(Remoting.SOCKET_FACTORY_CLASS_NAME);
+ if (socketFactoryClassName != null)
+ {
+ configuration.put(Remoting.SOCKET_FACTORY_CLASS_NAME,
socketFactoryClassName);
+ }
+ }
socketFactory = createSocketFactory(configuration);
}
}
Show replies by date