Set client invoker properties
Finally, a third programmatic option is available for those configuration properties which happen to be settable client invoker properties. In the following fragment, the client invoker is obtained from the Client and a SocketFactory is passed to it by way of a setter method: String locatorURI = "socket://test.somedomain.com:8084"; String params = "/?clientMaxPoolSize=10"; locatorURI += params; InvokerLocator locator = new InvokerLocator(locatorURI); HashMap config = new HashMap(); config.put(ServerInvoker.TIMEOUT, "360000"); Client client = new Client(locator, config); client.connect(); SocketFactory sf = new MySocketFactory(); ClientInvoker clientInvoker = client.getInvoker(); clientInvoker.setSocketFactory(sf);