Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unicast Remote Object

 
Manas Shukla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i am new to java
therefore my question may not be apt for this forum
But why does implementation class has to extend UnicastRemoteObject ???
 
Andrey Kozhanov
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, implementation class does not necessary has to extend UnicastRemoteObject. RMI goal is to make objects remotely accessible. There are two ways of doing this:

1. Extend UnicastRemoteObject

2. Call static method UnicastRemoteObject.exportObject with your implementation class as a parameter.

As far as i know, using UnicastRemoteObject either way is required by RMI server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic