wtorek, 14 lipca 2009

Innowacja :P do klasy Client (tylko fragment bloku try)

try {
RMIInterface r = (RMIInterface) Naming.lookup("rmi://10.10.0.131/ServiceName");
System.out.println("Current info: " + r.getInfo());
String s = r.getInfo();
while(true)
{
Thread.sleep(200);

if (!s.equals(r.getInfo()))
{

System.out.println("Current info: " + r.getInfo());
s = r.getInfo();
}
}
}

Brak komentarzy:

Prześlij komentarz