Search code examples
javaconnectionclientrmi

Rmi client connection check and retrying to connect?


I'm using RMI and I have a server object and many clients that connected to server. My question is about client connections. How can I check client connections disconnected ? If a client disconnected it should try to re-connect the server ?

Is there any example that is useful about connection checking and and re-connection ?

I have come up hearbeat offer ? Is it best solution ?

Best Regards,


Solution

  • Connections in RMI are managed automatically, and completely hidden from you. The only control you have over them is via the RMI system properties listed in the Javadoc/Guide to Features/RMI.