minor cleanup

This commit is contained in:
zzz
2009-06-22 17:01:56 +00:00
parent 29d0c19b0e
commit 5d0d7aca58
2 changed files with 3 additions and 13 deletions

View File

@ -43,7 +43,7 @@ public class ClientListenerRunner implements Runnable {
_running = false; _running = false;
_listening = false; _listening = false;
String val = context.getProperty(BIND_ALL_INTERFACES, "False"); String val = context.getProperty(BIND_ALL_INTERFACES);
_bindAllInterfaces = Boolean.valueOf(val).booleanValue(); _bindAllInterfaces = Boolean.valueOf(val).booleanValue();
} }

View File

@ -49,18 +49,8 @@ public class ClientManagerFacadeImpl extends ClientManagerFacade {
public void startup() { public void startup() {
_log.info("Starting up the client subsystem"); _log.info("Starting up the client subsystem");
String portStr = _context.router().getConfigSetting(PROP_CLIENT_PORT); int port = _context.getProperty(PROP_CLIENT_PORT, DEFAULT_PORT);
if (portStr != null) { _manager = new ClientManager(_context, port);
try {
int port = Integer.parseInt(portStr);
_manager = new ClientManager(_context, port);
} catch (NumberFormatException nfe) {
_log.error("Error setting the port: " + portStr + " is not valid", nfe);
_manager = new ClientManager(_context, DEFAULT_PORT);
}
} else {
_manager = new ClientManager(_context, DEFAULT_PORT);
}
} }
public void shutdown() { public void shutdown() {