Posted By: maverick13 |
3/23/2007 4:08:00 AM |
|
|
Hi,
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 127.0.0.1).when 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:[127.0.0.1:45832]..
I tried executing the client side with the following explicit declaration of the server IP address::
java -Djava.security.policy=server.policy -Djava.rmi.server.hostname=172.23.1.145 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..
|
|