File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes new to RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "new to RMI" Watch "new to RMI" New topic
Author

new to RMI

naveen chinthakunta
Greenhorn

Joined: Sep 26, 2005
Posts: 16
Hi all,

I am pretty new to RMI and I have a trivial question. Is it necessary that all the server code has to be implemented from an interface? I went through some sample code and all seem to be doing the same. Is it just a standard or it has to be done like that. Plz help clearing the doubt.

navEEn
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Yes, you design an interface that extends the Remote interface, and then implement that interface in your server. It's required so that both the stub and the actual implementation provide the same methods.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to RMI