Java.rmi Hello World example


I'm preparing for an exam. During my distributed computing course we touched on java rmi. I don't need to be able to code rmi  - but its always good to support answers with code back-up :) Hi have found an hello world example at

I was wondering which classes would I as a programmer explicitly have to programme? The remote inter face (, the remote class ( and the client programe class ?? So three in total. Is that correct??

Thanks as ever. Your help is invaluable :)
Who is Participating?
Mayank SAssociate Director - Product EngineeringCommented:
Yes, you need to code those three things, effectively. You will also find a simple sample here: 
hm i would use spring and let the rmi to it using it via a proxy

have  a look at the javadocs:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.