Results 1 to 3 of 3

Thread: Delay between rmi lookup and creation

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Default Delay between rmi lookup and creation

    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.

  2. #2
    Join Date
    Aug 2004
    Location
    Stockholm
    Posts
    466

    Default

    Do you have a RMI registry running? I guess if not, then lookups will be really slow.....
    Sincerely,
    /The Cantor

    "Murphy was an optimist"
    (The O'Toole commentary on Murphy's Law)

  3. #3
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    Quote Originally Posted by gkumar3 View Post
    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.
    No spring code is active during the problem you described. Spring delegates the task of registry locating to the underlying RMI subsystem via LocateRegistry.getRegistry(). So, if you have a problem with that I recommend you to ask the question at the specific Sun forums.

    P.S. I never experienced such a long registry lookup. It's rather quick even if the registry is not running.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •