Naming.lookup() and DNS!
843793May 7 2009 — edited May 8 2009Hello all,
I started a RMI service thats listening in our private network at //10.0.0.105:10099/MyService
I run my RMI client from another machine (10.0.0.2) and I tried to contact this service running in 10.0.0.105
But my client hangs when it tries to do a Naming.lookup("//10.0.0.105:10099/MyService") or Naming.lookup("rmi://10.0.0.105:10099/MyService").
I read in another thread in this forum that Naming.lookup uses DNS to resolve the host address and will hang if it cannot resolve it. Turns out, DNS is not setup properly in 10.0.0.2 (client machine).
My question is this:
1. What might be the reason that RMI client hangs during Naming.lookup()?
2. Can I safely rule out the possibility of any DNS involvement in this scenario since, I am supplying a dot.decimal address instead of a human readable host address?
I appreciate any help on this.
Thanks!
.Bala.