Click here to load reader

北京大学计算机系 代亚非

Embed Size (px)

DESCRIPTION

北京大学. 分布对象技术. 北京大学计算机系 代亚非. 1. 第九章 分布对象技术. 9.1 分布对象技术要解决的基本问题 9.2 分布对象技术概论 9.3 分布对象的核心概念 9.4 分布对象主流技术介绍 9.5 分布对象处理技术 --- 发展趋势 9.6 分布对象主流技术开发过程. 9.1 分布对象技术要解决的基本问题. 以下情况是不是分布式? 1 、浏览 2 、两个及其之间的通信 3 、计算引擎. 分布对象技术要解决的问题. C++ 编译器完成连接. C++Main Program. C++ Object. ?. A 机. - PowerPoint PPT Presentation

Citation preview

  • ***

  • 9.1 9.2 9.3 9.4 9.5 ---9.6

  • 9.1 123

  • 9.1

  • 9.1 /()/()N/(TIERS):/,,./

  • 9.1 ()

  • 9.1 1WEB 1 21WEB 2 1WEB 1 21WEB 2 1WEB 1 21WEB 2

  • 9.1

  • 9.1

  • 9.1 N1N2Nk...

  • 9.1 Socket API

  • 9.1 ?CORBA/IIOPJava/RMIActiveX ControlsRPCCOM/DCOM...EJB

  • 9.2 1. (80) 2. (90) /

  • 9.2 :1. 2. 3. 4. ().90

  • 9.2

  • 9.2 ? 1 2 3 4. 5.

    (,,,)

  • 9.2 JavaJavaVBC++VB

  • 9.2 , ?1. ,. 2. 3. .:1. 2. 3.

  • 9.2 ? ,,,.?: 1.. 2.,, :

  • 9.2 ?OMGCORBAMicrosoftCOM/DCOMSUNJava/EJB

  • 9.3 ----?ORB(Object Request Broker)

  • 9.3 ----

    ORB

  • 9.3 ----ORBORB

  • 9.3 ----:1.2.3. 4.

  • 9.3 ----:GUI

  • 9.3 ----:,ORB,

  • 9.4 : 1. ,, 2. ,, 1. OMGCORBA 2. MicrosoftActiveX/DCOM 3. SUNJava/RMI

  • 9.4 ---CORBAOMG,CORBA1989,8,900OMG,CORBAIIOP(Internet Inter-ORB Protocol).CORBA:ORBIDL,CORBA.

    CORBA

  • 9.4 ---CORBAORBIDL

  • 9.4 ---CORBAIDL Stubs IDL SkeletonIDL SkeletonCORBAOMGIDL IDLC++Interface Description Language

  • 9.4 ---CORBACORBA:1. CORBAORBORBORB

  • 9.4 ---CORBA3.CORBAIDL(ORB)CORBA2. CORBACORBA

  • 9.4 ---CORBACORBACORBA

  • 9.4 ---COM/DCOMOLE(Object Linking and Embedding)OLE 1. OLE:,OLE 2. OLE 3. OLE:, .COM,DCOM,OLEActiveX

  • 9.4 ---COM/DCOM

  • 9.4 ---COM/DCOM

  • 9.4 ---COM/DCOM(COM) ()(UDT)()

    OLEOLE

    OLE

  • 9.4 ---COM/DCOMCOM (Component Object Model ) /.COM,. COMCOMCOM.COMWINDOWSCOMOLE,CORBA/ORB

  • 9.4 ---COM/DCOMActiveXOLECOMInternet.,Internet.ActiveX OLEinternetwordpowerpointActiveX OLEinternetActiveXActiveXOLEinternetVBScriptJavaScriotPerl

  • 9.4 ---COM/DCOM(DCOMActiveX/DCOMOLE,COM,Internet.COMDCOMDCOM,DCOM (RPC--- remote procedure call )DCOMCOM

  • 9.4 ---COM/DCOMActiveXDCOMActiveX, ,.,WEB,ActiveX,: www.activex.com.Windows98WindowsNT5.0DCOM.

  • 9.4 ---Java/RMIRMIJavaORB.JavaSocket. Socket.RPC, Socket,,.Java/RMI(Remote Method Invocation)Java,JavaJava.Java/RMI

  • 9.4 ---Java/RMIRMI1. Stub,.2. SkeletonsRRL3. RRLStubSkeleton.RRL.4. 4: ,,,

  • 9.4 ---Java/RMIRMI:1. : RMI.2. : RMI3. : RMI

  • 9.4 ---EJBEJB---(Enterprise JavaBean1.0)Java.JavaBean. EJB, , .

  • 9.4 ---EJBEJB?1. EJBJavaEJB2. EJB,,,,API.3. EJBJavawrite once, run anywhere.EJBEJB.4. EJB,.5. EJB,Java APIs, CORBA

  • 9.4 ---EJBEJBJavaBean1. JavaBeansJavaBeans,,Java Beans. JavaBeans. JavaBeans,2. EJB,,EJBJavaBeans.3. EJB,. ,EJB.4. EJBJavaBeansEJB.

  • 9.4 ---EJBEJBCORBA1. CORBA(CORBA),CORBAEJB2. CORBAEJB3. IIOPEJBCORBA.EJBEJB,EJB:1. EJB/CORBA----EJB APIsJava.2. CORBA----CORBA IDL.

  • 9.4 ---EJBEJB

    JavaEJB,JavaBeans.

  • 9.4 ---:CORBA,JavaBean,ActiveX:IIOP, RMI, DCOMCORBA.,,..Java,,,CORBA..ActiveX/DCOM,(MTS),asp ,wizard,.

  • 9.4 ---CORBACOM/DCOM2-3 COM/ DCOMOMGMicrosoftCORBAJavaCORBAJava

  • 9.4 ---

  • 9.5 ---Object web hypertext web-->interactive web-->object webobject Web?CORBAJavaobject webhypertext web,interactive web:1. object web2. .

  • 9.5 ---Object web

  • 9.5 ---

  • 9.5 ---object web(1) internet/Intranetagentinternet,maneger(corba//iiop).ManegerInternetAgent,agentinternet,internet.(2) Webweb.

  • 9.5 ---object web

    PC./.PC.GUI/./...,..,.,.N,,,,N.,.,

    ..80,,.90.,,OOAOOD,OOP(C++,SMALLTALK),.,.,

    /:,..,..

    .

    1. /,2. .

    If you have used visual component assembly tools such as Visual Age, Delphi, Visual Basic, PARTS, Mojo, or even PowerBuilder, you are familiar with the notion of software components. Visual Basic Extensions (VBX's) were the first widely used software components.

    Object Request Boker.(Object Service)ORB(Common Facilities)ORBIDL OMG

    :,.,.... ,/,PUSH,:Server;,..,,,,.,. ,,,,,.,.,,,,,.

    IIOPInternet Inter-ORB ProtocolIIOPGIOPTCP/IPGIOPGeneral Inter-ORB ProtocolGIOP1CDR(Common Data Representation)(struct,union,array)Value type(CORBAvalue type)CORBA23TCP

    OMAORBCORBA ORBCORBA()ORBCORBAORBIDL Stubs()ORBIDL SkeletonSkeletonIDL StubsORBIDL SkeletonSkeletonORBORBCORBA(Object Request Broker)(TCP/IPIPX/SPX)TCP/IP ORBInternet Inter-Orb(IIOP)CORBA 2.0 ()ORB,CORBA 1. CORBA 2. CORBA 3. CORBA CORBACORBACORBA

    1. CORBAORBORBORB2. CORBACORBACORBA3CORBAIDL(ORB)CORBACORBA,,stubs,ORB,stubsORB,ORBstubs.,ORB,.,,,ORB.ORBIIOP,IIOPTCP/IP.

    OLE(common user model).OLE(UI),OLE:,.,

    (?,ppt?)

    Although designed from the start to support distribution, the original implementation of COM ran on only a single system. This architectural promise was fulfilled by the release of Distributed COM (DCOM). Although it is a relatively simple set of extension to COM, DCOM provides what is needed to achieve basic distribution of COM objectsWith RPC, a client can make what appears to be a local call to a component, although that call actually executes in an object across the network. With DCOM, a client can create and use objects on other systems as well as objects running locally, and need not aware of the distinction between the two. DCOM also supports security services, controlling which clients can use which COM objects, and a way to specify the machine on which an object should be created. The services supplied by DCOM can be used to build secure, distributed, COM-based applications.

    RMI:SERVERCLIENT.SERVER,,.SERVER,.RMISERVERCLIENT.Socket,, RPCSTUS,.RPC,,.RRL,RRL..,RRL.RRLskeleton..RRL,,RMI,.,RRL,.,.,.RmiURL,url,,,,.RMI.Server.Client.RMIWEB SERVER,SERVERCLIENT.RMI.,,.RMI.,.,.Beans,,,.

    agent/manager,agent(,),Manageragent.maneger.

    Sunjinijini---java.Sununix-solarisbill joy:1.2. 3. ,.