aspose file tools*
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 Spring in Action this week in the Spring 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 ???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check whether Naming.lookup uses Default host name and port number?