1 / 30

CORBA 簡介

CORBA 簡介. What is CORBA. C ommon O bject R equest B roker A rchitecture Specification of a Standard Product of OMG(Object Management Group) Consortium 700+ companies Exception of Microsoft(Dcom) Middleware. Definitions. Distributed:Dispersed across processes

jenna
Download Presentation

CORBA 簡介

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CORBA簡介

  2. What is CORBA CommonObjectRequestBrokerArchitecture • Specification of a Standard Product of OMG(Object Management Group) • Consortium 700+ companies • Exception of Microsoft(Dcom) Middleware

  3. Definitions Distributed:Dispersed across processes Hetrogeneous:Located on “different” machines Object Oriented computing.

  4. Motivation behind CORBA Platform and Language dependant software Monolithic applications Consumers and Developers are tied

  5. Goal of CORBA Interoperability Reusability Portability

  6. The CORBA ORB Responsible for the communication between applications Middleware between servers and clients Handles the “talking” between applications

  7. REPRESENTATIONOFCORBA

  8. The Client Object, Component or application Make requests for services from servers Can be a client for some requests and a server for other requests

  9. The Server(Object Implementation) Provides a response to requests for services Can be a server for some requests and a client for other requests

  10. The ORB core with IIOP(Internet Inter-Orb Protocol) ORB core Responsible for communicating requests Identify and locate objects Handle connection administration Deliver Data

  11. The ORB core with IIOP(Internet Inter- Orb Protocol) • ORB 可視為一種軟體的匯流排 (software bus) • ORB 連接不同的物件,並隱藏了下列幾點: • 物件位置 • 物件實作 • 物件執行狀態 • 物件通訊機制 • 各廠商只要遵循 ORB 對外的界面標準,至於內部可以由各廠商自行決定實作 ORB 的方法。

  12. The ORB core with IIOP(Internet Inter- Orb Protocol) IIOP IIOP developed by OMG Handles communication between ORBs on TCP/IP based networks ORBs should support IIOP in order to be CORBA compliant

  13. IDL Client stubs IDL(Interface Definition Language) • CORBA definition of an Interface(object) • Create Client stubs and server skeletons when compiled IDL client stub • A code written in IDL • Use them 99.99% • The other alternative is DII

  14. IDL(Interface Definition Language) Module <identifier>{ <type declarations>; <constant declarations>; <exception declarations>; interface <identifier> [: <inheritance> ] { <type declarations>; <constant declarations>; <attribute declarations>; <exception declarations>; [<op_type>] <identifier> ( <parameters> ) [raises exception] [context]; } interface <identifier> [: <inheritance> ] :}

  15. DII(Dynamic Invocation Interface) The other alternative to invoke a server operation Allow dynamic creation and invocation of requests to objects

  16. The ORB Interface Collection of operations that provides services to servers and clients

  17. The IDL server skeletons Correspondant to client stub on the server side. Provides the means by wich a server’s operations can be accessed Keeps the server from collapsing

  18. The Dynamic Skeleton Interface (DSI) • Corresponding to the DII on the server side.

  19. The Dynamic Skeleton Interface (DSI) • Corresponding to the DII on the server side.

  20. Typical Client Method Call

  21. Sequence of a method Call • Transforming the call into a request • Finding the server for the request • Preparing the server to receive the request • Communicating the data making up the request • Delivering the return reply

  22. Transforming Method calls into requests • The client obtains an object reference for the server • The Client packages the reference,the method’s name & parameters and the type of return value • The Client executes the server’s method by calling the corresponding method in the Client stub • Inside the client stub the call is turned into a request • An ORB Interface operation is called to pass the request to the ORB

  23. Finding the server for the request • ORB uses the information in the object reference to locate the server’s object • Determine the specific port number that the server object is accepting connections on

  24. Preparing the server to receive the request ORB sends a message to the server’s Object adapter via the IIOP “Activate” the server or ensure that it is already up and running

  25. Communicating the data making up th request The client ORB sends the data to the server’s ORB The server skeleton turns the data into a target language specific method call The server skeleton performs the call on the server implementation

  26. Delivering the return reply Changing the data back into the client machine form Send the data back to the Client ORB and ultimately to the Client stub

  27. Application Objects Client Object Implementation Object Request Broker (ORB) Common Facilities Common Object Services (CFA) (COSS) Object Management Architecture

  28. Object Request Broker (ORB)

More Related