_server = resin.createServer();
thread.setContextClassLoader(_server.getClassLoader());
NetworkListenSystem listenService
= _system.getService(NetworkListenSystem.class);
_httpPort = new TcpSocketLinkListener();
_httpPort.setProtocol(new HttpProtocol());
if (_watchdogPort > 0)
_httpPort.setPort(_watchdogPort);
else
_httpPort.setPort(server.getWatchdogPort());
_httpPort.setAddress(server.getWatchdogAddress());
_httpPort.setAcceptThreadMin(2);
_httpPort.setAcceptThreadMax(3);
_httpPort.init();
listenService.addListener(_httpPort);
ClassLoader oldLoader = thread.getContextClassLoader();
try {
thread.setContextClassLoader(_system.getClassLoader());