Remote clients obtain a reference to the remote RMI-P4 objects on the server side by getting an InitialContext instance on a particular server process. Subsequent requests by this client are sent to the same server process.
In the event of server failure, the client request is dispatched to another server process where it gets a new InitialContext instance. For more information about providing failover for remote clients with load balancing, see Load Balancing of Client RMI-P4 Requests.
There is also a mechanism that migrates the instance of the server-side remote object from the failed server process to another one. For more information, see Failover for Clustered RMI-P4 Remote Objects. The same mechanism is the basis for the implementation of EJB failover.