This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Question about creating ang registering a server object in RMI registry
 
It's not a secret anymore!