else
registry = LocateRegistry.createRegistry(serverConfig.server_port);
if (serverConfig.ssl_enabled && serverConfig.multihomed_enabled)
serverImpl = new ServerImpl(
new MultihomeRMIClientSocketFactory(
new SslRMIClientSocketFactory(),
InetAdrUtility.getLocalIPAdresses()),
new SslRMIServerSocketFactory(null, null, true)/*,
serverConfig.server_port*/);
else if (serverConfig.ssl_enabled && !serverConfig.multihomed_enabled)
serverImpl = new ServerImpl(
new SslRMIClientSocketFactory(),
new SslRMIServerSocketFactory(null, null, true),
serverConfig.server_port);
else if (!serverConfig.ssl_enabled && serverConfig.multihomed_enabled) {
serverImpl = new ServerImpl(
new MultihomeRMIClientSocketFactory(null,
InetAdrUtility.getLocalIPAdresses()), null/*,
serverConfig.server_port*/);
}
else if (!serverConfig.ssl_enabled && !serverConfig.multihomed_enabled)
serverImpl = new ServerImpl(serverConfig.server_port);