wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Remote Method Invocation (RMI) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Remote Method Invocation (RMI)" Watch "Remote Method Invocation (RMI)" New topic
Author

Remote Method Invocation (RMI)

Alireza Bahmanpour
Greenhorn

Joined: Oct 24, 2007
Posts: 23
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

Joined: Mar 24, 2008
Posts: 3817

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remote Method Invocation (RMI)
 
Similar Threads
How to create an RMI program in eclipse?
RMI Test
Servlets
RMI -- rmic -- rmiregistry -- How to use In WSAD5
Deploying an RMI application