protected boolean doServerConfigurationTest(String host, int port) throws Exception
{
// Create ServerConfiguration.
ServerConfiguration config = new ServerConfiguration("socket");
Map locatorConfig = new HashMap();
// Add invokerLocatorParameters.
locatorConfig.put("serverBindAddress", host);
locatorConfig.put("serverBindPort", Integer.toString(port));
locatorConfig.put("timeout", "10000");
config.setInvokerLocatorParameters(locatorConfig);
// Add invocation handler.
Map handlers = new HashMap();
ServerInvocationHandler handler = new SampleInvocationHandler();
handlers.put("test", handler);
config.setInvocationHandlers(handlers);
// Create Connector.
Connector connector = new Connector();
try
{