Search code examples
javarmi

How to use unicastremoteobject if my class is already extending another class...?


I have a problem, that my Server class is already extending another class. How should I use UniCastRemoteObject?


Solution

  • Just call UnicastRemoteObject.exportObject(). That will export the object, just like calling super() would if your class extended UnicastRemoteObject.