Java RMI - UnicastRemoteObject: what is the difference between UnicastRemoteObject.exportObject() and extends UnicastRemoteObject?

后端 未结 4 1583
暖寄归人
暖寄归人 2021-02-05 08:46

i\'m preparing for an exam and I\'m having a question that I hope someone here could answer me.

It\'s about RMI and remote objects. I wonder why there is so much differe

4条回答
  •  清歌不尽
    2021-02-05 09:32

    java.rmi.server.UnicastRemoteObject is used for exporting a remote object with Java Remote Method Protocol (JRMP) and obtaining a stub that communicates to the remote object.

    For the constructors and static exportObject methods below, the stub for a remote object being exported is obtained ...

    There you should follow the Javadoc

提交回复
热议问题