Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Naming.lookup() and DNS!

843793May 7 2009 — edited May 8 2009
Hello 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2009
Added on May 7 2009
2 comments
169 views