small changes to factory and implemented rmi awareness with a simple register/deregister program
This commit is contained in:
18
rmi_Awareness/Client.java
Normal file
18
rmi_Awareness/Client.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user