* Add start and shutdown calls for embedded XML-RPC web server.

This commit is contained in:
hns 2005-10-21 21:46:11 +00:00
parent 25fd8cb805
commit 8a30ebf693

View file

@ -530,6 +530,14 @@ public class Server implements IPathElement, Runnable {
// http.stop() interrupted by another thread. ignore.
}
}
if (xmlrpc != null) {
try {
xmlrpc.shutdown();
} catch (Exception x) {
// exception in xmlrpc server shutdown, ignore.
}
}
if (helmaLogging) {
Logging.shutdown();
@ -622,7 +630,7 @@ public class Server implements IPathElement, Runnable {
xmlrpc.acceptClient(st.nextToken());
}
}
xmlrpc.start();
logger.info("Starting XML-RPC server on port " + (xmlrpcPort));
}