This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes How to check whether Naming.lookup  uses Default host name and port number? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to check whether Naming.lookup  uses Default host name and port number?" Watch "How to check whether Naming.lookup  uses Default host name and port number?" New topic
Author

How to check whether Naming.lookup uses Default host name and port number?

Phuu Thu
Greenhorn

Joined: Jun 18, 2012
Posts: 2
Hi,
I got a problem connection and RMI server..
host name = dev1bv
port number = 5235

code is:
localObj = (SvrObjInterface) Naming.lookup("//dev1bv:5235/RMIServer");

and when I try to retrieve
TObj = localObj.getTObj();
I got null value for TObj.. I checked and localObj is not null.. Please help me. I think it is because it uses default host name and port ???
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to check whether Naming.lookup uses Default host name and port number?
 
Similar Threads
RMI Binding on localhost
Do we need host,port,and db name when we use RMI ?
ConnectionException under Win ME
Major problems with networking client.
Why does RMI naming lookup work on the local host when I give it a garbage name?