Java.rmi Hello World example

Hi,

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

http://www.ccs.neu.edu/home/kenb/com3337/rmi_tut.html

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

Thanks as ever. Your help is invaluable :)
bowemcAsked:
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:

http://www.javaalmanac.com/egs/java.rmi/pkg.html 
0
 
mightyoneCommented:
hm i would use spring and let the rmi to it using it via a proxy

have  a look at the javadocs:

http://www.springframework.org/docs/api/index.html?org/springframework/remoting/rmi/
0
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.