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();
}
}
}
wtorek, 14 lipca 2009
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz