wood burning stoves 2.0*
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
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?
 
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?