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 Question about creating ang registering a server object in RMI registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Question about creating ang registering a server object in RMI registry" Watch "Question about creating ang registering a server object in RMI registry" New topic
Author

Question about creating ang registering a server object in RMI registry

Roger Fed
Ranch Hand

Joined: Oct 17, 2010
Posts: 82

Hello,
I've one question in developing RMI application:
After creating the the server interface and the server implementation class , we
create a server object from the server implementation class and register it with an RMI registry:

My question is at the first line
We create an object of ServerInterfaceImpl

and assign the reference of this object to an object of serverInterface type

why don't we assign the reference of the object created to an object of ServerInterfaceImpl type as follow:


I Hear I Forget, I See I Remember, I Do I Understand.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about creating ang registering a server object in RMI registry