Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Method Invocation (RMI)

 
Alireza Bahmanpour
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sorry if the question is too simple, but it is giving me a headache...
The problem is that I have an example of a Java RMI program, and I need to run it. But do not know how to do so.
Could someone please describe to me, in simple words, how to run the program. I know that I first have to start the RMI registry, then the server, and then the client I think.
But how do I do this???

Thank you
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alireza Bahmanpour wrote:I know that I first have to start the RMI registry, then the server, and then the client I think.
But how do I do this???


1 - run the rmiregistry (for Windows) command from the command prompt
2 - run your server program (java -cp classpath NameOfyourServerProgram)
3 - run the client on another machine or in the same machine (same as above #2)

You will have a complete example from start to end at here. BTW we have a separate forum for these kind of things called Distributed-Java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic