IntelliJ Java IDE
The moose likes Distributed Java and the fly likes rmi client on a different machine Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "rmi client on a different machine" Watch "rmi client on a different machine" New topic
Author

rmi client on a different machine

sanjays samadder
Greenhorn

Joined: Mar 30, 2001
Posts: 24
hi,
i have made a rmi client and a server on the same machine.
it works
i am told that to invoke a remote object from a different machine
i need to make the same client in other machine.
but logically enough i am unable to compile the client code on the different machine.
it does not recognize the interface that is on the server machine.
please guide
thank you
ram mohan
Ranch Hand

Joined: Oct 17, 2000
Posts: 68
U need to keep the copy of that interface + stub with all the client mechine.Pls correct me if I am wrong
jos xavier
Greenhorn

Joined: Feb 02, 2001
Posts: 14
Originally posted by ram mohan:
U need to keep the copy of that interface + stub with all the client mechine.Pls correct me if I am wrong

what you need to do copy the stub class , the client class and the interface class to the client machine where you want to see it and then start the registry and the server on your machine. Then let the client execute the client program... But see that the request is going to the server ..check the ip address tha thte client is connecting to...
i hope this helps you
jos xavier
 
 
subject: rmi client on a different machine
 
Threads others viewed
RMI
TCP/IP Communication
TCP/IP Communication
TCP/IP Communication
rmi registry and server
MyEclipse, The Clear Choice