title: Java RMI - Client Timeout
body: <p>I'm building a Distributed System using Java RMI and it must support a server loss.</p>
  
  <p>If my client is connected to a Server using RMI, if this server goes down (cable problems for example), my client should get an exception so it can connect to other server.</p>
  
  <p>But when the server goes down, nothing happens to my client, he keeps waiting for the reply. How can I set a timeout for that?</p>