I tried to use the spring remoting.

I followed the rmi method for remoting in the springframework site
Chapter 17. Remoting and web services using Spring

But, the lookup fails after 4-5 minutes and it creates a new one with the following log message.

"Could not detect RMI registry - creating new one"

How do I reduce the lookup timeout?

Thanks for your help.