The moose likes Distributed Java and the fly likes Unicast Remote Object Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Unicast Remote Object" Watch "Unicast Remote Object" New topic
Author

Unicast Remote Object

Manas Shukla
Greenhorn

Joined: Mar 04, 2010
Posts: 1
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

Joined: Mar 12, 2010
Posts: 79
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.
 
 
subject: Unicast Remote Object
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture