Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

RMI Problem

Thread view: 
piterboss - 30 Jul 2007 14:33 GMT
Hi !

I have started RmiRegistry and RmiServer on computer with ip -
10.0.0.6

I want to run RMI client on another computer:

Registry registry = LocateRegistry.getRegistry("10.0.0.6");
Execute comp = (Execute) Naming.lookup("RmiServer");
RemoteAnswerMessage ram = comp.askForMessage(rqm);

I have  only: java.net.connectException   ConnectionRefused.

Help !

and when i'm starting rmiServer with option -
Djava.rmi.server.hostname="WiinieThePooh"
on the client side i have Connection refused to host "WiinieThePooh"

I don't understand it at all.
Client is connected to rmiServer, Data is sent (String -
"WiinieThePooh") and i have connection refused.....

Help !
Daniel Pitts - 30 Jul 2007 17:29 GMT
> Hi !
>
[quoted text clipped - 20 lines]
>
> Help !

Look up the what java.rmi.server.hostname DOES.  You can't just give
it an abitrary name, it actually has to point to a real machine.
Esmond Pitt - 31 Jul 2007 06:21 GMT
Try it with -Djava.rmi.server.hostname=10.0.0.6 at the server. If this
works, and if the original ConnectException contained '127.0.0.1', check
your server's DNS or hosts file to make sure that your server host's
real IP address is mapped to its real public name, and that 'localhost'
is mapped to 127.0.0.1. Common Linux problem.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.