small changes to factory and implemented rmi awareness with a simple register/deregister program

This commit is contained in:
2014-12-01 02:03:48 +01:00
parent 238c61f4d3
commit 1ef2207245
10 changed files with 190 additions and 2 deletions

18
rmi_Awareness/Client.java Normal file
View File

@@ -0,0 +1,18 @@
package rmi_Awareness;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
/**
* Created by Giovanni on 01/12/2014.
*/
public class Client extends UnicastRemoteObject implements call_me_back {
public Client() throws RemoteException {
}
@Override
public void notify(String in) throws RemoteException {
System.out.println(in);
}
}