Author: ron.sigal(a)jboss.com
Date: 2010-12-15 18:05:31 -0500 (Wed, 15 Dec 2010)
New Revision: 6161
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java
Log:
JBREM-1144: Added useServerConnectionIdentity variable.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java 2010-11-13 16:54:03 UTC
(rev 6160)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Client.java 2010-12-15 23:05:31 UTC
(rev 6161)
@@ -300,6 +300,8 @@
private boolean useClientConnectionIdentity;
+ private boolean useServerConnectionIdentity;
+
// Constructors
---------------------------------------------------------------------------------
/**
@@ -2184,6 +2186,27 @@
}
}
}
+ param = configuration.get(Remoting.USE_SERVER_CONNECTION_IDENTITY);
+ if (param instanceof String)
+ {
+ useServerConnectionIdentity = Boolean.valueOf((String) param).booleanValue();
+ }
+ else if (param != null)
+ {
+ log.warn("value of " + Remoting.USE_SERVER_CONNECTION_IDENTITY +
" must be a String: " + param);
+ }
+ else
+ {
+ if (locator.getParameters() != null)
+ {
+ param =
locator.getParameters().get(Remoting.USE_SERVER_CONNECTION_IDENTITY);
+ if (param != null)
+ {
+ useServerConnectionIdentity = Boolean.valueOf((String)
param).booleanValue();
+ this.configuration.put(Remoting.USE_SERVER_CONNECTION_IDENTITY, param);
+ }
+ }
+ }
PortUtil.updateRange(params);
}
Show replies by date