Is there any way to determine the caller process in Callee remote method.
Suppose there are 3 clients and a server and server has one remote method which is called by all the clients. Is it possible to determine which of the client process called the remote method at runtime? (other than passing the process name in the method)
Server
void callMe(){//remote method
System.out.println("I was called by Client : " + ? );
}
Client
...
...
server.callMe();
...
...
See Determine remote client IP address for Java RMI call and Get the client Ip address in RMI Server when cleint makes a call registry.lookup("RMI Server")