andyjdavis
Programmer
I am using a server object within an RMI application. It extends java.rmi.server.UnicastRemoteObject. Its function is to remain memory, servicing RMU method calls, until a particular signal from the client indicates that the communication is complete at which point the object should destroy itself. What is the best way of doing this? As it extends UnicastRemoteObject exiting its Run method does not help (indeed its run method is empty). Stop() is deprecated so Im not too keen to use that. Any hints?