Presentation is loading. Please wait.

Presentation is loading. Please wait.

Netprog: More Corba1 CORBA Continued. Netprog: More Corba2 CORBA Terminology ORB - Object Request Broker IR – Implementation Repository IDL – Interface.

Similar presentations


Presentation on theme: "Netprog: More Corba1 CORBA Continued. Netprog: More Corba2 CORBA Terminology ORB - Object Request Broker IR – Implementation Repository IDL – Interface."— Presentation transcript:

1 Netprog: More Corba1 CORBA Continued

2 Netprog: More Corba2 CORBA Terminology ORB - Object Request Broker IR – Implementation Repository IDL – Interface Definition Language OA,BOA,POA – Object Adaptor, Basic Object Adaptor, Portable Object Adaptor Object Services

3 Netprog: More Corba3 A Description of The ORB http://www.omg.org/corba/whatiscorba.html http://www.omg.org/corba/whatiscorba.html "The (ORB) is the middleware that establishes the client-server relationships between objects. Using an ORB, client can transparently invoke a method on a server object, which can be on the same machine or across a network."

4 Netprog: More Corba4 A Picture from OMG www.omg.org/gettingstarted/corbafaq.htm www.omg.org/gettingstarted/corbafaq.htm

5 Netprog: More Corba5 ORB Differences The specification of the functionality of an ORB is not a complete implementation description. Many of the details are left up to the implementor. Every Vendor does things differently. You write code to work with a specific ORB.

6 Netprog: More Corba6 Inter-ORB Protocol There is support for connecting ORBs. The most significant support is the Internet Inter-Orb Protocol (IIOP) –Specifies the details of communication (bridging) between ORBs.

7 Netprog: More Corba7 Multiple ORB Picture www.omg.org/gettingstarted/corbafaq.htm www.omg.org/gettingstarted/corbafaq.htm

8 Netprog: More Corba8 Call Semantics (part of Corba Object Model - 1.2.8.5 Execution Semantics) "Two styles of execution semantics are defined by the object model: At-most-once: if an operation request returns successfully, it was performed exactly once; if it returns an exception indication, it was performed at-most-once. Best-effort: a best-effort operation is a request-only operation (i.e., it cannot return any results and the requester never synchronizes with the completion, if any, of the request)."

9 Netprog: More Corba9 IDL Used to describe "interfaces" –similar to RPC.x file Object Oriented. Mappings to many languages.

10 Netprog: More Corba10 General Layout of IDL File module identifier { type,constant & exception declarations interface identifier : base { attribute declarations type identifier(parameters) raises exception; type identifier(parameters) raises exception; … } Organizational group Corba Class Corba Methods

11 Netprog: More Corba11 Sample IDL (from Essential Dist. Object Survival Guide) Module MyAnimals { interface Dog:Pet,Animal { attribute integer age; exception NotInterested(string explanation); void Bark(in short how_long) raises(NotInterested); void Sit(in string where) raises(NotInterested); } interface Cat:Animal { void Eat(); } Module MyAnimals { interface Dog:Pet,Animal { attribute integer age; exception NotInterested(string explanation); void Bark(in short how_long) raises(NotInterested); void Sit(in string where) raises(NotInterested); } interface Cat:Animal { void Eat(); }

12 Netprog: More Corba12 IDL from Mico Example interface Account { void deposit(in unsigned long amount); void withdraw(in unsigned long amount); long balance(); };

13 Netprog: More Corba13 Object Adaptors Corba includes specification of mechanisms for how the server-side ORB should react to requests. –How to start up the server (or hand the request to the server). –Create object references. BOA is simplest OA.

14 Netprog: More Corba14 POA Newer than BOA. Supports lots of fancy stuff: –Persistent objects. –Threads. So far I haven't heard of TOA, ZOA or OOA


Download ppt "Netprog: More Corba1 CORBA Continued. Netprog: More Corba2 CORBA Terminology ORB - Object Request Broker IR – Implementation Repository IDL – Interface."

Similar presentations


Ads by Google