Author: ron.sigal(a)jboss.com
Date: 2010-12-15 18:20:59 -0500 (Wed, 15 Dec 2010)
New Revision: 6168
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java
Log:
JBREM-1144: Added useServerConnectionIdentity variable.
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java 2010-12-15 23:19:09 UTC
(rev 6167)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/Client.java 2010-12-15 23:20:59 UTC
(rev 6168)
@@ -220,6 +220,8 @@
private Set connectionListeners = new HashSet();
private boolean useClientConnectionIdentity;
+
+ private boolean useServerConnectionIdentity;
// Constructors
---------------------------------------------------------------------------------
@@ -318,6 +320,27 @@
}
}
}
+ o = configuration.get(Remoting.USE_SERVER_CONNECTION_IDENTITY);
+ if (o instanceof String)
+ {
+ useServerConnectionIdentity = Boolean.valueOf((String) o).booleanValue();
+ }
+ else if (o != null)
+ {
+ log.warn("value of " + Remoting.USE_SERVER_CONNECTION_IDENTITY +
" must be a String: " + o);
+ }
+ else
+ {
+ if (locator.getParameters() != null)
+ {
+ o = locator.getParameters().get(Remoting.USE_SERVER_CONNECTION_IDENTITY);
+ if (o != null)
+ {
+ useServerConnectionIdentity = Boolean.valueOf((String)
o).booleanValue();
+ this.configuration.put(Remoting.USE_SERVER_CONNECTION_IDENTITY, o);
+ }
+ }
+ }
}
Map tempMap = new HashMap();
Show replies by date