RMI service becoming unbound
I'm using a RmiServiceExporter bean to expose an RMI service.
Mostly, it all works fine.
However it occasionally becomes unbound. That is, the client gets an exception that includes:
Caused by: org.springframework.remoting.RemoteLookupFailureEx ception: Could not find RMI service [rmi://myhost:12505/HedgeFundsService] in RMI registry; nested exception is java.rmi.NotBoundException: MyService
Caused by: java.rmi.NotBoundException: MyService
This is after it's been running for a while.
The service is contained in a tomcat environment. The war file has not been re-deployed between when it last worked and when it failed. There's no error in any logs.
If I restart the tomcat process, it comes back.
Any clues? Any diagnostic settings I can use to help work it out?