分布对象(2)DistributedObjects*puterSoftwareNanjingUniversity*摘要MoreaboutRMIJ2EE/EJB*puterSoftwareNanjingUniversity*RMIJava语言之内,充分利用这一点!Stub可下载!可以传“对象”!GarbageCollection!传“引用”(RemoteException)*puterSoftwareNanjingUniversity*SomeimportantpartsofRMIStubs:Eachremoteobjectclasshasanassociatedstubclass,-sideremoteinvocationsare“actually”:Argumentsandresultshavetobe“marshalled”—.Ingeneralthisisanon--side“Run-timeSystem”:ThisisresponsibleforlisteningforinvocatingrequestsonsuitableIPports,anddispatchingthemtotheproper,localresident,remoteobject.*puterSoftwareNanjingUniversity*RMIArchitectureoverviewRMILayersStub/skeletonlayerobjectsusedbyclientandserverapplicationsRemotereferencelayercreation/managementofremotereferencesdistributedgarbagecollectionTransportprotocollayerbinarydataprotocol*puterSoftwareNanjingUniversity*Byusingalayeredarchitectureeachlayercouldbeenhancedorreplacedwithoutaffectingtherestofthesystem:→transportlayer:UDP/IPlayerorsecuresockets(SSL).()--rmiregistry*puterSoftwareNanjingUniversity**puterSoftwareNanjingUniversity*:unicast/point-to-:supportforactivationofdormantremoteserviceobjects::-generatestubc
分布对象2说课材料 来自淘豆网www.taodocs.com转载请标明出处.