You could do your rmi call on a separate thread and have the main thread wait for a period of time before killing the worker thread and resubmitting the rmi call in case the previous one failed.
Wait answer given amount of time from server
Frage
What should I use to make client wait some time and if after this time he still does not get answer, make request again. If he get answer in specified time continue with other request.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow