• Post Reply Bookmark Topic Watch Topic
  • New Topic

rmi client on a different machine

 
sanjays samadder
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!