public static String getClientHost() throws ServerNotActiveException
{
Thread currThread = Thread.currentThread();
if (currThread instanceof RMIIncomingThread)
{
RMIIncomingThread incomingThread = (RMIIncomingThread) currThread;
return incomingThread.getClientHost();
}
else
{
throw new ServerNotActiveException(
"Unknown client host - current thread not instance of 'RMIIncomingThread'");