Preference given to values in the InvokerLocator
Preference is given to values in the InvokerLocator. For example, in String locatorURI = "socket://test.somedomain.com:8084/?clientMaxPoolSize=10"; InvokerLocator locator = new InvokerLocator(locatorURI); HashMap config = new HashMap(); config.put("clientMaxPoolSize", "20"); Client client = new Client(locator, config); the value of the variable clientMaxPoolSize would be set to 10. As of release 2.5.2, that behavior can be reversed by setting the parameter org.jboss.remoting.Remoting.CONFIG_OVERRIDES_LOCATOR (actual value "configOverridesLocator") to true. As always, in determining the value of the variable configOverridesLocator, preference is given to the InvokerLocator. But if the value of "configOverridesLocator" is set to true in the InvokerLocator, or if "configOverridesLocator" is absent from the InvokerLocator but it is set to "true" in the configuration map, then preference will be given to values in the configuration map. For example, in String locatorURI = "socket://test.somedomain.com:8084/?clientMaxPoolSize=10"; InvokerLocator locator = new InvokerLocator(locatorURI); HashMap config = new HashMap(); config.put("clientMaxPoolSize", "20"); config.put("configOverridesLocator", "true"); Client client = new Client(locator, config); the value of the variable clientMaxPoolSize would be set to 20.