Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Phuu Thu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!