Documente Academic
Documente Profesional
Documente Cultură
Common Object Request Broker Architecture. Specification for a distributed application framework. Developed by OMG(Object Management Group). Not a programming language. Enables user to develop application written in different programming languages. The language must have a mapping defined between itself and OMGs IDL.
Benefits
Language Independence Location Transparency
CORBA
An objects functionality can be accessed through its interface. Interface is a collection of public methods and attributes that the object implements. Objects are separated from the client application. Using the interface of the object, 2 pieces of code are generated I.e stub and the skeleton. Stub is used in place of the object in the client application Skeleton is included in the server side application that programmer will create to contain the object.
CORBA
Client interacts with the stub through an interface. Stub takes the details of the instruction. It packs the details into an request and sends ti across the network to skeleton. Server receives request message and the details. Invokes the method on the object,passes the parameters. The return values or exceptions are packaged into reply. Reply is sent to stub. Stub extracts information from reply message and returns it back to client application.
REQUEST STUB REPLY
CLIENT
SKELETON OBJECT
CORBA Framework
IDL (Interface Definition Language)
ORB (Object Request Broker) IIOP (Internet Inter-ORB Protocol)
IDL
Programming language independent language. Created by OMG for defining interfaces of distributed objects. OMG also defined IDL-to-language mappings. This allows an IDL interface to be mapped into a particular programming language. Once the IDL interface is defined, it is compiled using an IDL-to-language compiler to generate stub/skeleton. Interfaces defined in IDL + Mappings enables clients to access objects.
ORB
Facilitates the creation and transmission of request and reply messages that occur between clients and objects (stub to skeleton). Deals with manipulating and acquiring references to remote objects. It is usually implemented as a set of libraries in client and server.
IIOP
Defined by OMG Used by ORBs to send messages between clients and objects.
Is the TCP/IP version of the OMG-defined protocol named GIOP. (General Inter-ORB Protocol)
Vendor independent protocol.
C++
Java
C++
Java
IDL
IDL Client
IDL
IDL
IDL Server
IDL
ORB
Application Objects
Common Facilities
CORBA facilities:- Horizontal and Vertical facilities. Horizontal Facilities:-user interface, information management ,systems management Vertical Facilities:- Tele Communications, Health care, E-commerce.
Benefits of ORB
Static and Dynamic method invocation
CODE
OBJECT X
OBJECT Y
Call abc
DATA
abc
abc
Execute abc
RPC Mechanism
ORB Mechanism
Interface Repository
CLIENT
Object Implementation
Implementation Repository
Dynamic Invocation
Client Stubs
ORB Interface
Skeletons
Object Adapter
IIOP
CORBA Services
Life Cycle Service Persistence Service Naming Service Event Service Concurrency Control Service Transaction Service Relationship Service Externalization Service Query Service Licensing Service Properties Service Time Service Security Service Trader Service Collection Service
Document