Programming tutorials online .NET, Java, C++, Visual Basic, and More

.NET Tutorials
General Programming Tutorials
Site Extras


Java/J2EE Forum

Open forum for discussing anything Java related. J2EE, JSPs, servlets, EJBs, JDBC, its all fair game and can be found in the Java/J2EE forum!

Posted By: maverick13   3/23/2007 4:08:00 AM
I am using rmi's in my program and i met with the following error::
Whenever i do the remote method invocation,the client rather than looking up or searching at the server whose IP address
is specified,ends up searching at loopback(i.e at IP address the command say

comp = (RemoteCommand)Naming.lookup(***)
is invoked...

I tried printing out the contents of the variable "comp" here and it is as follows::

Proxy[RemoteCommand,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[]..

I tried executing the client side with the following explicit declaration of the server IP address::

java -Djava.rmi.server.hostname= Engine

But still i faced the same problem..

However,when both the client and server are executed on the same system,the program works fine..

Sign In
  Forgot my password


Featured Book

Introducing Microsoft .Net, Third Edition ($19.79)
Introducing Microsoft .Net, Third Edition

Featured Software

Microsoft Visual Studio Standard 2005 ($249.99)
Microsoft Visual Studio Standard 2005