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
posted
0
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
posted
0
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