my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Questions regading RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Questions regading RMI" Watch "Questions regading RMI" New topic

Questions regading RMI

Seetharaman Iyer
Ranch Hand

Joined: Jun 25, 2010
Posts: 35
Hi All,

Am back! I've finished my assignment using Sockets. Everything is working fine. But I just want to make sure that my code (rest of the connectivity part) remains same for both types of implementation. So I wanna implement the same project with RMI. Am very new to RMI. I have some questions.

1. I think there are three alternatives to bind the object. Could you please what those are and usage?

2. What these are :
If possible, small example for these or route me to the correct site.

3. I have used one RMI example that did not produce any stubs or anything - just like other class files I complied and executed
I didn't use rmic or some other tool to compile
I didn't start the rmi server separately (Is there any such we should do before actually binding the object/starting service)
Example I used is :
1. One interface which extends Remote Interface
2. One Server class (RMIServer) which extends UnicastRemoteObject and implements above interface
3. one client class
Am I missing something - not clear for me

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

to your question 3.

I assume that you are trying to implement some rmi example. initially I struggled to implement an example of RMI until find this link.
I agree. Here's the link:
subject: Questions regading RMI
It's not a secret anymore!