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

Home
.NET Tutorials
General Programming Tutorials
Community/Forums
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!


POST REPLY
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..





 
Sign In
Email
Password
  Forgot my password

Search

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





 
© 2022 Ammastore.org
All Rights Reserved
COMPUTER SCIENCE HOMEWORK | Privacy/Disclaimer