Documente Academic
Documente Profesional
Documente Cultură
ChinweiHu
TobuildadistributedchatroomservicewithJavaRMI,westartedwiththesystem
architecturedesign:
Thesystemlevelarchitectureisfairlystraightforward,inwhichChatRegistry,ChatClient,and
ChatServerexporttheirskeletontothermiregistryandinteractwithoneanotherthroughtheir
stubobjectsprovidedbythermiregistry.AmoreconcretedesignwithRMItransparencyisas
follows:
1.ChatRegistryexportsskeletonontheregistry
2.ChatProvidercreatesChatServerregisterChatRoomthroughtheChatRegistrystub
3.ChatClientgetsalistofChatRoomsthroughtheChatRegistrystub
4.ChatClientgetsChatServerstubfromChatRegistry