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
Pergunta
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.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow