• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Server

 
raphael Bereh
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
In the FBN assignment, it is requested that the Public methods of the Data class are included in the Remote Interface.
I am trying to understand why that requirement as the server seem to have the db package locally, so that it can access any class without need of RMI.
Am I wrong ?
Thanks for your comments.
 
Matt Ghiold
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you create a RemoteDataInterface or some similiar class you allow for polymorphism and for rmi. Personally, I am creating one class called DataInterface that can be used for RMI or local connectivity. This will allow more or less an exact copy minus the constructors of the data class for remote use via RMI.
Hope this helps,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic