{
serverSocket = ((TcpConnector) connector).getServerSocket(uri);
}
catch (Exception e)
{
throw new ConnectException(TcpMessages.failedToBindToUri(uri), e, this);
}
try
{
getWorkManager().scheduleWork(this, WorkManager.INDEFINITE, null, connector);
}
catch (WorkException e)
{
throw new ConnectException(CoreMessages.failedToScheduleWork(), e, this);
}
}